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' 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)