Commit b0873f2213202a05d4f89d7c16068b00fbe4f888

Authored by Paulo Henrique Junqueira Amorim
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
app.py 100755 → 100644
@@ -345,14 +345,15 @@ def use_cmd_optargs(options, args): @@ -345,14 +345,15 @@ def use_cmd_optargs(options, args):
345 # In case there is, try opening as it was a inv3 345 # In case there is, try opening as it was a inv3
346 else: 346 else:
347 for arg in reversed(args): 347 for arg in reversed(args):
348 - file = arg.decode(sys.stdin.encoding) 348 +
  349 + file = arg.decode(FS_ENCODE)
349 if os.path.isfile(file): 350 if os.path.isfile(file):
350 path = os.path.abspath(file) 351 path = os.path.abspath(file)
351 Publisher.sendMessage('Open project', path) 352 Publisher.sendMessage('Open project', path)
352 check_for_export(options) 353 check_for_export(options)
353 return True 354 return True
354 -  
355 - file = arg.decode(FS_ENCODE) 355 +
  356 + file = arg.decode(sys.stdin.encoding)
356 if os.path.isfile(file): 357 if os.path.isfile(file):
357 path = os.path.abspath(file) 358 path = os.path.abspath(file)
358 Publisher.sendMessage('Open project', path) 359 Publisher.sendMessage('Open project', path)