mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 08:50:54 +00:00
Updated version read logic
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
|
import importlib
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, os.path.abspath('../..'))
|
sys.path.insert(0, os.path.abspath('../..'))
|
||||||
@@ -24,6 +24,8 @@ project = u'pycmx'
|
|||||||
copyright = u'(c) 2025, Jamie Hardt'
|
copyright = u'(c) 2025, Jamie Hardt'
|
||||||
author = u'Jamie Hardt'
|
author = u'Jamie Hardt'
|
||||||
|
|
||||||
|
release = importlib.metadata.version("pycmx")
|
||||||
|
version = release.split(".")[0:2]
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user