switched to pathlib for lookup

This commit is contained in:
Matthias Mair 2024-01-07 23:03:08 +01:00
parent 473e75eda2
commit 0d076eaea8
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -109,7 +109,8 @@ if __name__ == '__main__':
print(f'GITHUB_REF_TYPE: {GITHUB_REF_TYPE}') print(f'GITHUB_REF_TYPE: {GITHUB_REF_TYPE}')
print(f'GITHUB_BASE_REF: {GITHUB_BASE_REF}') 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 version = None