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