Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the com/win32comext/shell/demos/create_link.py demo for link file that don't exist #2288

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ 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)
* Fixed a circular import between `win32comext.axscript.client.framework` and `win32comext.axscript.client.error` (#2381, @Avasam)

Build 307, released 2024-10-04
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
Loading