Simple implementation of __version__

This commit is contained in:
Matthias Koefferlein 2023-02-14 22:41:03 +01:00
parent 334e9985f3
commit dd466beca8
1 changed files with 7 additions and 1 deletions

View File

@ -1 +1,7 @@
# klayout library definition file
from importlib import metadata
try:
__version__ = metadata.version('klayout')
except Exception:
__version__ = 'unknown'