[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`
Serhiy Storchaka
report at bugs.python.org
Mon May 4 04:28:13 EDT 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
I think it is worth to fix and it should be not difficult to fix. Either make the output file name absolute before executing the script, or open the output file before executing the script (what is easier). Unless I miss something.
----------
nosy: +serhiy.storchaka
stage: -> patch review
versions: +Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40492>
_______________________________________
More information about the Python-bugs-list
mailing list