fix error in sudo install case
This commit is contained in:
parent
72b5295cd9
commit
266d5eb93e
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ def defaultPath():
|
|||
# check if sudo/ root:
|
||||
rootdir = os.path.join("/", "usr", "local", "bin")
|
||||
if rootdir in pathdirs and checkLinkAccess(rootdir):
|
||||
return rootpath
|
||||
return rootdir
|
||||
for userdir in [os.path.join(os.environ.get("HOME", ""), ".local", "bin"),
|
||||
os.path.join(os.environ.get("HOME", ""), "bin")]:
|
||||
if userdir in pathdirs:
|
||||
|
|
Loading…
Reference in a new issue