mirror of
https://github.com/nwg-piotr/nwg-shell.git
synced 2024-09-11 14:17:12 +03:00
fix #4
This commit is contained in:
parent
c1afbd144a
commit
277c69a074
@ -74,7 +74,7 @@ def main():
|
||||
paths = []
|
||||
bin_path = ""
|
||||
for path in os.getenv("PATH").split(":"):
|
||||
if path.startswith(os.getenv("HOME")) and os.path.exists(path):
|
||||
if path.startswith(os.getenv("HOME")) and os.path.exists(path) and path not in paths:
|
||||
paths.append(path)
|
||||
if len(paths) == 0:
|
||||
print("No directory in '{}' found on $PATH, dunno where to install scripts, sorry".format(os.getenv("HOME")))
|
||||
|
Loading…
Reference in New Issue
Block a user