Remove old __file__ replacement

This commit is contained in:
Lukas Raska 2022-07-28 12:11:52 +02:00 committed by Megan Wilhite
parent 9f9cb2f57a
commit 10500f7be2

1
run.py
View file

@ -61,7 +61,6 @@ def python_runtime():
# extract the absolute script path to alter sys.path and specific dunder variables
script = pathlib.Path(sys.argv[2]).expanduser().absolute()
sys.path.insert(0, str(script.parent))
__file__ = str(script)
# update passed args so they don't start with "<binary> python"
sys.argv = sys.argv[2:]