mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: improve version handling fallback in __init__.py
This commit is contained in:
parent
c487683010
commit
9f7783e8dc
1 changed files with 6 additions and 1 deletions
|
@ -3,4 +3,9 @@ from setuptools_scm import get_version
|
|||
try:
|
||||
__version__ = get_version(root="..", relative_to=__file__)
|
||||
except Exception:
|
||||
from aider.__version__ import __version__
|
||||
try:
|
||||
from aider.__version__ import __version__
|
||||
except Exception:
|
||||
__version__ = "0.0.0"
|
||||
|
||||
__all__ = [__version__]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue