[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

Tal Einat report at bugs.python.org
Sun Oct 18 02:27:01 EDT 2020


Tal Einat <taleinat+python at gmail.com> added the comment:

> I am not sure what is better: to fix it at high level, in main() for cProfile and cProfile, or at low level, in methods runctx() and run() of profile._Utils.

Maybe both, to keep them decoupled and be sure of correct behavior in all cases?

----------
nosy: +taleinat
versions: +Python 3.10 -Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40492>
_______________________________________


More information about the Python-bugs-list mailing list