Skip to content

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KostromDan committed Apr 24, 2024
1 parent fc08a3a commit 2f2b427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MDGUtil/PathUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def get_all_programs() -> list[str]:

"""Start Menu/Programs"""
programs_paths = {r'C:\ProgramData\Microsoft\Windows\Start Menu\Programs',
os.path.join(os.environ["userprofile"], "Start Menu", "Programs"),
os.path.join(os.environ['userprofile'], 'Start Menu', 'Programs'),
winshell.programs()}
for programs_path in programs_paths:
if not os.path.isdir(programs_path):
continue
for lnk_path in Path(programs_path).rglob('*.lnk'):
shell = win32com.client.Dispatch("WScript.Shell")
shell = win32com.client.Dispatch('WScript.Shell')
shortcut = shell.CreateShortCut(str(lnk_path))
paths.add(shortcut.Targetpath)

Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 2f2b427

Please sign in to comment.