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.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since ca1af82 was
d28b974,
checked in by Jae Cho <jhjcho@…>, 12 years ago
|
version no. to 3.0
|
-
Property mode set to
100644
|
File size:
586 bytes
|
Rev | Line | |
---|
[d28b974] | 1 | __version__ = "3.0.0" |
---|
[6bdf6ae] | 2 | __build__ = "1" |
---|
[8d2f5bb] | 3 | try: |
---|
| 4 | import pkg_resources |
---|
[5709051] | 5 | d = pkg_resources.get_distribution("sasview") |
---|
| 6 | __build__ = str(d.version) |
---|
[8d2f5bb] | 7 | except: |
---|
[42c4f86] | 8 | try: |
---|
| 9 | import os |
---|
[5709051] | 10 | dir = os.path.dirname(__file__) |
---|
| 11 | filepath = os.path.join(dir, "BUILD_NUMBER") |
---|
| 12 | if os.path.isfile(filepath): |
---|
| 13 | f=open(filepath, 'r') |
---|
[42c4f86] | 14 | buff = f.read().strip() |
---|
| 15 | if len(buff)<50: |
---|
| 16 | __build__ = buff |
---|
| 17 | except: |
---|
| 18 | import logging |
---|
| 19 | import sys |
---|
| 20 | logging.warning("Error while determining build number\n %s" % sys.exc_value) |
---|
Note: See
TracBrowser
for help on using the repository browser.