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
Trying this on a project which has a runner script which tries to find an "engine" (essentially a module) in various different places to support both running from an installed location and from inside the source tree for development. scalene is doing something odd behind the scenes which breaks this project's logic. Quick example to illustrate:
scripts/foo.py:
import os
print(__file__)
print(os.path.realpath(__file__))
Results:
$ python3 scripts/foo.py
scripts/foo.py
/tmp/scripts/foo.py # <- as expected
$ python3 -m scalene scripts/foo.py
scripts/foo.py
/tmp/scripts/scripts/foo.py # <- the extra /scripts is problematic
The text was updated successfully, but these errors were encountered:
Trying this on a project which has a runner script which tries to find an "engine" (essentially a module) in various different places to support both running from an installed location and from inside the source tree for development. scalene is doing something odd behind the scenes which breaks this project's logic. Quick example to illustrate:
scripts/foo.py
:Results:
The text was updated successfully, but these errors were encountered: