fix error in sudo install case

This commit is contained in:
Bela 2018-11-02 18:24:38 +01:00
parent 72b5295cd9
commit 266d5eb93e

View file

@ -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: