bloomberg / memray

Memray is a memory profiler for Python

Home Page:https://bloomberg.github.io/memray/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`memray run` overwrites `sys.argv[0]` even when `-I` or `-P` is used

godlygeek opened this issue · comments

memray run tries to match the updates to sys.path that are performed by the interpreter itself when it starts. When those path updates are suppressed (by the -I or -P command line flags or their corresponding environment variables), Memray's emulation winds up overwriting paths in sys.path that needed to be left alone.