Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Sep 14, 2023
1 parent 49f40ec commit 2865d0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iblrig/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from pathlib import Path
from setuptools_scm import get_version
from importlib.metadata import version

__version__ = get_version(version_scheme='post-release', local_scheme='dirty-tag', root='../..')
if Path('.github').exists():
__version__ = get_version(version_scheme='post-release', local_scheme='dirty-tag')
else:
__version__ = version('iblrig')

0 comments on commit 2865d0b

Please sign in to comment.