2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

switched to pathlib for lookup

This commit is contained in:
Matthias Mair
2024-01-07 23:03:08 +01:00
parent 473e75eda2
commit 0d076eaea8

View File

@ -109,7 +109,8 @@ if __name__ == '__main__':
print(f'GITHUB_REF_TYPE: {GITHUB_REF_TYPE}')
print(f'GITHUB_BASE_REF: {GITHUB_BASE_REF}')
version_file = os.path.join(here, '..', 'InvenTree', 'InvenTree', 'version.py')
here = Path(__file__).parent.absolute()
version_file = here.joinpath('..', 'InvenTree', 'InvenTree', 'version.py')
version = None