From 422f1105cf10ac69564263fa07dbfb3e97200012 Mon Sep 17 00:00:00 2001 From: madmickstar Date: Fri, 13 Jan 2017 14:55:16 +1100 Subject: [PATCH 1/2] fixed version number detection when installed as a module --- restorething/rttools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restorething/rttools.py b/restorething/rttools.py index dcee081..c18247d 100644 --- a/restorething/rttools.py +++ b/restorething/rttools.py @@ -39,7 +39,8 @@ def process_working_dir(): def get_version(path): - with open(path, encoding='utf-8') as f: + fullpath = os.path.join(os.path.dirname(sys.argv[0]), path) + with open(fullpath, encoding='utf-8') as f: version_file = f.read() regex = r"^__version__ = ['\"]([^'\"]*)['\"]" version_match = re.search(regex, version_file, re.M) From 04842e7ca1466955af351ae2b92f36fcbd327291 Mon Sep 17 00:00:00 2001 From: madmickstar Date: Fri, 13 Jan 2017 14:56:09 +1100 Subject: [PATCH 2/2] fixed version number detection when installed as a module --- restorething/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restorething/_version.py b/restorething/_version.py index 0cd6bb0..c0439d9 100644 --- a/restorething/_version.py +++ b/restorething/_version.py @@ -1,3 +1,3 @@ -__version__ = '0.2.2' +__version__ = '0.2.3'