ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since 69d8aac was
69d8aac,
checked in by Piotr Rozyczko <rozyczko@…>, 8 years ago
|
Fixing problem with getting git revision
|
-
Property mode set to
100644
|
File size:
536 bytes
|
Line | |
---|
1 | __version__ = "4.0b1" |
---|
2 | __build__ = "GIT_COMMIT" |
---|
3 | try: |
---|
4 | import logging |
---|
5 | import subprocess |
---|
6 | import os |
---|
7 | FNULL = open(os.devnull, 'w') |
---|
8 | git_revision = subprocess.check_output(['git describe --tags'], |
---|
9 | #git_revision = subprocess.check_output(['pwd'], |
---|
10 | stderr=FNULL, |
---|
11 | shell=True) |
---|
12 | __build__ = str(git_revision).strip() |
---|
13 | except subprocess.CalledProcessError as cpe: |
---|
14 | 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.