Update version.py to retrieve package version using package name
This commit is contained in:
parent
ec46a56288
commit
cdf1963138
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from importlib import metadata
|
||||
|
||||
try:
|
||||
__version__ = metadata.version(__package__)
|
||||
__version__ = metadata.version("langflow")
|
||||
except metadata.PackageNotFoundError:
|
||||
__version__ = ""
|
||||
del metadata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue