Changes in sasview/__init__.py [4394be16:9a182b2] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/__init__.py
r4394be16 r9a182b2 1 __version__ = "4.0 .0-beta"1 __version__ = "4.0" 2 2 __build__ = "GIT_COMMIT" 3 3 try: 4 import logging 4 5 import subprocess 5 6 import os 7 import platform 6 8 FNULL = open(os.devnull, 'w') 7 git_revision = subprocess.check_output(['git', 'rev-parse', 'HEAD'], 9 if platform.system() == "Windows": 10 args = ['git', 'describe', '--tags'] 11 else: 12 args = ['git describe --tags'] 13 git_revision = subprocess.check_output(args, 8 14 stderr=FNULL, 9 15 shell=True) 10 16 __build__ = str(git_revision).strip() 11 except: 12 import logging 13 import sys 14 logging.warning("Error while determining build number\n %s" % sys.exc_value) 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))
Note: See TracChangeset
for help on using the changeset viewer.