source: sasview/sasview/__init__.py @ 66f21cd

release_4.0.1
Last change on this file since 66f21cd was 66f21cd, checked in by ajj, 7 years ago

Updating version number to 4.0.1

  • Property mode set to 100644
File size: 617 bytes
RevLine 
[66f21cd]1__version__ = "4.0.1"
[8ca1ba1]2__build__ = "GIT_COMMIT"
3try:
[a3f1c11e]4    import logging
[8ca1ba1]5    import subprocess
[801a296]6    import os
[54756fc]7    import platform
[801a296]8    FNULL = open(os.devnull, 'w')
[54756fc]9    if platform.system() == "Windows":
10        args = ['git', 'describe', '--tags']
11    else:
12        args = ['git describe --tags']
13    git_revision = subprocess.check_output(args,
[801a296]14                    stderr=FNULL,
15                    shell=True)
[8ca1ba1]16    __build__ = str(git_revision).strip()
[a3f1c11e]17except 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 TracBrowser for help on using the repository browser.