Skip to content

Commit

Permalink
PyInstaller: display executable version
Browse files Browse the repository at this point in the history
  • Loading branch information
EarToEarOak committed Nov 21, 2015
1 parent 9844dfd commit 275c7fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyinstaller.spec
Expand Up @@ -58,6 +58,10 @@ def create_version():
f.write(vvi.__unicode__())
f.close()

print 'Version: {}.{}.{}.{}'.format (vvi.ffi.fileVersionMS >> 16,
vvi.ffi.fileVersionMS & 0xffff,
vvi.ffi.fileVersionLS >> 16,
vvi.ffi.fileVersionLS & 0xFFFF)

def build(version=None):
architecture, _null = platform.architecture()
Expand Down

0 comments on commit 275c7fe

Please sign in to comment.