Changes in sasview/__init__.py [9a182b2:801a296] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/__init__.py

    r9a182b2 r801a296  
    1 __version__ = "4.0" 
     1__version__ = "4.0.0-alpha" 
    22__build__ = "GIT_COMMIT" 
    33try: 
    4     import logging 
    54    import subprocess 
    65    import os 
    7     import platform 
    86    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'], 
    148                    stderr=FNULL, 
    159                    shell=True) 
    1610    __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)) 
     11except: 
     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.