From b0873f2213202a05d4f89d7c16068b00fbe4f888 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Junqueira Amorim Date: Fri, 29 Sep 2017 10:59:16 -0300 Subject: [PATCH] Fixed problem to click in .inv3 file on windows --- app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100755 => 100644 app.py diff --git a/app.py b/app.py old mode 100755 new mode 100644 index 7ee95f9..9bc80ea --- a/app.py +++ b/app.py @@ -345,14 +345,15 @@ def use_cmd_optargs(options, args): # In case there is, try opening as it was a inv3 else: for arg in reversed(args): - file = arg.decode(sys.stdin.encoding) + + file = arg.decode(FS_ENCODE) if os.path.isfile(file): path = os.path.abspath(file) Publisher.sendMessage('Open project', path) check_for_export(options) return True - - file = arg.decode(FS_ENCODE) + + file = arg.decode(sys.stdin.encoding) if os.path.isfile(file): path = os.path.abspath(file) Publisher.sendMessage('Open project', path) -- libgit2 0.21.2