Commit b0873f2213202a05d4f89d7c16068b00fbe4f888
1 parent
f01038cc
Exists in
master
Fixed problem to click in .inv3 file on windows
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
... | ... | @@ -345,14 +345,15 @@ def use_cmd_optargs(options, args): |
345 | 345 | # In case there is, try opening as it was a inv3 |
346 | 346 | else: |
347 | 347 | for arg in reversed(args): |
348 | - file = arg.decode(sys.stdin.encoding) | |
348 | + | |
349 | + file = arg.decode(FS_ENCODE) | |
349 | 350 | if os.path.isfile(file): |
350 | 351 | path = os.path.abspath(file) |
351 | 352 | Publisher.sendMessage('Open project', path) |
352 | 353 | check_for_export(options) |
353 | 354 | return True |
354 | - | |
355 | - file = arg.decode(FS_ENCODE) | |
355 | + | |
356 | + file = arg.decode(sys.stdin.encoding) | |
356 | 357 | if os.path.isfile(file): |
357 | 358 | path = os.path.abspath(file) |
358 | 359 | Publisher.sendMessage('Open project', path) | ... | ... |