Skip to content

Commit

Permalink
Fixed the com/win32comext/shell/demos/create_link.py demo for link …
Browse files Browse the repository at this point in the history
…file that don't exist
  • Loading branch information
Avasam committed Oct 4, 2024
1 parent 842fbef commit 2aadfd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ https://mhammond.github.io/pywin32_installers.html.
Coming in build 308, as yet unreleased
--------------------------------------

* Fixed the `com/win32comext/shell/demos/create_link.py` demo for link file that don't exist (#2288, @Avasam)

Build 307, released 2024-10-04
------------------------------
### Release process changes
Expand Down
4 changes: 2 additions & 2 deletions com/win32comext/shell/demos/create_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# From a demo by Mark Hammond, corrupted by Mike Fletcher
# (and re-corrupted by Mark Hammond :-)
import os
from itertools import zip_longest

import pythoncom
from win32com.shell import shell
Expand Down Expand Up @@ -61,8 +62,7 @@ def __getattr__(self, name):
)
sys.exit(1)
# create the shortcut using rest of args...
data = map(
None,
data = zip_longest(
sys.argv[2:],
("SetPath", "SetArguments", "SetDescription", "SetWorkingDirectory"),
)
Expand Down

0 comments on commit 2aadfd0

Please sign in to comment.