Skip to content

Commit

Permalink
gvfbyhtjuk
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Nov 21, 2023
1 parent fd00321 commit a8ef22d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/integration/pping_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ def get_root_method():
if os.geteuid() == 0:
return []
elif os.system("sudo true") == 0:
sys.path.append(str(BINDIR))
pythonpath = ":".join(sys.path)
if pythonpath[0] != ":":
pythonpath = ":" + pythonpath
pythonpath = str(BINDIR) + pythonpath
return ["sudo", "-E", "PYTHONDIR=%s" % pythonpath]
elif os.system("gosu root true") == 0:
return ["gosu", "root"]
Expand Down

0 comments on commit a8ef22d

Please sign in to comment.