mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove old __file__ replacement
This commit is contained in:
parent
9f9cb2f57a
commit
10500f7be2
1 changed files with 0 additions and 1 deletions
1
run.py
1
run.py
|
@ -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:]
|
||||
|
|
Loading…
Add table
Reference in a new issue