diff --git a/Contents/Code/consts.py b/Contents/Code/consts.py old mode 100644 new mode 100755 index cb39c2e..2502299 --- a/Contents/Code/consts.py +++ b/Contents/Code/consts.py @@ -37,7 +37,7 @@ def __init__(self): try: versionFile = Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name, NAME + '.bundle', 'VERSION') with io.open(versionFile, "rb") as version_file: - VERSION = version_file.readline().split('\\', 1)[-1] + VERSION = version_file.read().splitlines()[0] except: if not self.isCorrectPath(): VERSION = '*** WRONG INSTALL PATH!!!!....Correct path is: ' + Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name, NAME + '.bundle' + '***')