Files
pyinstaller/GrabVersion.py
T
giovannibajo 436b23a753 Trim exceeding whitespaces
git-svn-id: http://svn.pyinstaller.org/trunk@5 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-03 17:10:09 +00:00

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