Skip to content

Commit

Permalink
revert(general): restoring main version of get_pyscan_version.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbrost committed Sep 18, 2024
1 parent 254047a commit b341479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyscan/general/get_pyscan_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@


# function that gets the overarching version of pyscan from VERSION.json
def get_pyscan_version(path="VERSION.json"):
def get_pyscan_version(path="../VERSION.json"):
base_dir = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(base_dir, os.pardir, os.pardir, path)
path = os.path.join(base_dir, path)
with open(path) as version_file:
version = json.load(version_file)['version']
if type(version) is str:
return 'v' + version
else:
return "no valid version found"
assert False, "no valid version found"

0 comments on commit b341479

Please sign in to comment.