mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
436b23a753
git-svn-id: http://svn.pyinstaller.org/trunk@5 8dd32b29-ccff-0310-8a9a-9233e24343b1
15 lines
499 B
Python
15 lines
499 B
Python
import versionInfo
|
|
|
|
import sys
|
|
if len(sys.argv) < 2:
|
|
print "Usage: >python GrabVersion.py <exe>"
|
|
print " where: <exe> is the fullpathname of a Windows executable."
|
|
print " The printed output may be saved to a file, editted and "
|
|
print " used as the input for a verion resource on any of the "
|
|
print " executable targets in an Installer config file."
|
|
print " Note that only NT / Win2K can set version resources."
|
|
else:
|
|
vs = versionInfo.decode(sys.argv[1])
|
|
print vs
|
|
|