You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
I want to run kernprof from the root of my package source like kernprof -l mylib\test\test.py -v but then any import within test.py fails, e.g. import mylib.foo because the current working dir is not added to the python path when running kernprof, which in my opinion should happen by default. The workaround is to temporarily hack sys.path within this specific module, but that's annoying.
The text was updated successfully, but these errors were encountered:
letmaik
changed the title
Make module testing easier
Make module profiling easier
Nov 12, 2014
I want to run kernprof from the root of my package source like
kernprof -l mylib\test\test.py -v
but then any import withintest.py
fails, e.g.import mylib.foo
because the current working dir is not added to the python path when running kernprof, which in my opinion should happen by default. The workaround is to temporarily hacksys.path
within this specific module, but that's annoying.The text was updated successfully, but these errors were encountered: