ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since ac370c5 was
801a296,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 8 years ago
|
Don't flash the cmd window at start
|
-
Property mode set to
100644
|
File size:
433 bytes
|
Line | |
---|
1 | __version__ = "4.0.0-alpha" |
---|
2 | __build__ = "GIT_COMMIT" |
---|
3 | try: |
---|
4 | import subprocess |
---|
5 | import os |
---|
6 | FNULL = open(os.devnull, 'w') |
---|
7 | git_revision = subprocess.check_output(['git', 'rev-parse', 'HEAD'], |
---|
8 | stderr=FNULL, |
---|
9 | shell=True) |
---|
10 | __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) |
---|
Note: See
TracBrowser
for help on using the repository browser.