Changes in sasview/__init__.py [9a182b2:801a296] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/__init__.py
r9a182b2 r801a296 1 __version__ = "4.0 "1 __version__ = "4.0.0-alpha" 2 2 __build__ = "GIT_COMMIT" 3 3 try: 4 import logging5 4 import subprocess 6 5 import os 7 import platform8 6 FNULL = open(os.devnull, 'w') 9 if platform.system() == "Windows": 10 args = ['git', 'describe', '--tags'] 11 else: 12 args = ['git describe --tags'] 13 git_revision = subprocess.check_output(args, 7 git_revision = subprocess.check_output(['git', 'rev-parse', 'HEAD'], 14 8 stderr=FNULL, 15 9 shell=True) 16 10 __build__ = str(git_revision).strip() 17 except subprocess.CalledProcessError as cpe: 18 logging.warning("Error while determining build number\n Using command:\n %s \n Output:\n %s"% (cpe.cmd,cpe.output)) 11 except: 12 import logging 13 import sys 14 logging.warning("Error while determining build number\n %s" % sys.exc_value)
Note: See TracChangeset
for help on using the changeset viewer.