Browse Source

added usage output

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
bdb49079c6
  1. 7
      winclient/filever.py

7
winclient/filever.py

@ -21,6 +21,13 @@ def get_version_number (filename):
if __name__ == '__main__': if __name__ == '__main__':
import os import os
if "COMSPEC" in os.environ:
filename = os.environ["COMSPEC"] filename = os.environ["COMSPEC"]
this_delimiter = "." this_delimiter = "."
print(str(filename) + " version:")
print(".".join ([str (i) for i in get_version_number (filename)])) print(".".join ([str (i) for i in get_version_number (filename)]))
print("Running filever directly doesn't do much.\n\n#Usage:\n" +
"import filever\n" +
"parts = filever.get_version_number(filename)\n" +
"major,minor,subminor,revision = parts\n" +
"print(\".\".join([str (i) for i in parts]))\n\n")

Loading…
Cancel
Save