Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2e7f790

Browse filesBrowse files
committed
fix the fix on historic behavioir
1 parent 99709de commit 2e7f790
Copy full SHA for 2e7f790

File tree

Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed

‎winpython/wppm.py

Copy file name to clipboardExpand all lines: winpython/wppm.py
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,11 @@ def main(test=False):
338338
if args.movable:
339339
p = subprocess.Popen(["start", "cmd", "/k",dist.python_exe, "-c" , cmd_mov], shell = True, cwd=dist.target)
340340
sys.exit()
341-
if not args.install and not args.uninstall:
342-
args.install = True
343-
if not Path(args.fname).is_file() and args.install:
344-
if args.fname == "":
341+
if not args.install and not args.uninstall and args.fname.endswith(".toml"):
342+
args.install = True # for Drag & Drop of .toml (and not wheel)
343+
if args.fname == "" or (not args.install and not args.uninstall):
345344
parser.print_help()
346345
sys.exit()
347-
else:
348-
args.install = True # for Drag & Drop of .toml (and not wheel)
349346
else:
350347
try:
351348
filename = Path(args.fname).name

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.