Skip to content

Commit 02013e7

Browse files
authored
Merge pull request #1617 from stonebig/master
restore default behavior
2 parents db3ddb0 + 83baedd commit 02013e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

winpython/wppm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,12 @@ def main(test=False):
329329
sys.exit()
330330
if not args.install and not args.uninstall:
331331
args.install = True
332-
if not Path(args.fname).is_file() and not args.install:
332+
if not Path(args.fname).is_file() and args.install:
333333
if args.fname == "":
334334
parser.print_help()
335335
sys.exit()
336336
else:
337-
raise FileNotFoundError(f"File not found: {args.fname}")
337+
args.install = True # for Drag & Drop of .toml (and not wheel)
338338
else:
339339
try:
340340
filename = Path(args.fname).name

0 commit comments

Comments
 (0)