Skip to content

Commit f6c5fd5

Browse files
authored
Add version attributes issue #79
Adds two attributes for callers to determine the version number of library/package/module. Both a tuple and a string are provided.
1 parent 2e570b0 commit f6c5fd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gui/core/nanogui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import gc
1616
import sys
1717

18+
version_info = (1, 0, 0) # pep-440-like version number using semantic version number
19+
__version__ = '.'.join(map(str, version_info))
20+
1821
if sys.implementation.version < (1, 20, 0):
1922
raise OSError("Firmware V1.20 or later required.")
2023

0 commit comments

Comments
 (0)