diff --git a/.gitignore b/.gitignore index 1cb863f..235b5a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +PGUI/ gitcheckup.txt diff --git a/PGUI.pyw b/PGUI.pyw index d6c6e37..38d9a9a 100644 --- a/PGUI.pyw +++ b/PGUI.pyw @@ -7,8 +7,9 @@ import winshell def load_programs(): - directory = os.getenv('PGUI_DIR') - shortcuts = [os.path.join(directory, sname) for sname in os.listdir(directory)] + directory = os.path.join(os.path.dirname(__file__), 'PGUI') + shortcuts = [os.path.join(directory, p) for p in os.listdir(directory)] + shortcuts = [p for p in shortcuts if p.lower().endswith('.lnk')] programs = [] for shortcut in shortcuts: name = os.path.splitext(os.path.basename(shortcut))[0]