From 2e7f790deb8ce1405a723dce3daeeb8b467982b1 Mon Sep 17 00:00:00 2001 From: stonebig Date: Thu, 29 May 2025 09:38:12 +0200 Subject: [PATCH] fix the fix on historic behavioir --- winpython/wppm.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/winpython/wppm.py b/winpython/wppm.py index 342f3471..d6194829 100644 --- a/winpython/wppm.py +++ b/winpython/wppm.py @@ -338,14 +338,11 @@ def main(test=False): if args.movable: p = subprocess.Popen(["start", "cmd", "/k",dist.python_exe, "-c" , cmd_mov], shell = True, cwd=dist.target) sys.exit() - if not args.install and not args.uninstall: - args.install = True - if not Path(args.fname).is_file() and args.install: - if args.fname == "": + if not args.install and not args.uninstall and args.fname.endswith(".toml"): + args.install = True # for Drag & Drop of .toml (and not wheel) + if args.fname == "" or (not args.install and not args.uninstall): parser.print_help() sys.exit() - else: - args.install = True # for Drag & Drop of .toml (and not wheel) else: try: filename = Path(args.fname).name