From 83baeddef72d098e797761838a648c5937e65f37 Mon Sep 17 00:00:00 2001 From: stonebig Date: Wed, 28 May 2025 19:52:04 +0200 Subject: [PATCH] restore default behavior --- winpython/wppm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winpython/wppm.py b/winpython/wppm.py index 71296c72..9e676ce9 100644 --- a/winpython/wppm.py +++ b/winpython/wppm.py @@ -329,12 +329,12 @@ def main(test=False): sys.exit() if not args.install and not args.uninstall: args.install = True - if not Path(args.fname).is_file() and not args.install: + if not Path(args.fname).is_file() and args.install: if args.fname == "": parser.print_help() sys.exit() else: - raise FileNotFoundError(f"File not found: {args.fname}") + args.install = True # for Drag & Drop of .toml (and not wheel) else: try: filename = Path(args.fname).name