mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-13 08:10:08 +01:00
Add buildtools.printVersion()
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
# Just a little convenience function that can be used by other build scripts
|
||||
# or whatever to get the complete current version number.
|
||||
def printVersion():
|
||||
from . import config
|
||||
oldval = config.runSilently
|
||||
config.runSilently = True
|
||||
cfg = config.Config(True)
|
||||
config.runSilently = oldval
|
||||
print(cfg.VERSION)
|
||||
|
||||
Reference in New Issue
Block a user