Skip to content

Commit f299e10

Browse files
authored
Merge pull request #1619 from stonebig/master
fix the fix on historic behavioir
2 parents 50ab8c9 + 2e7f790 commit f299e10

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

winpython/wppm.py

Lines 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)