| Revision 444,
498 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
Update unified logger to add revision number to startup message.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | # Read the application properties file |
|---|
| 4 | def getProperties(): |
|---|
| 5 | lines = [] |
|---|
| 6 | try: |
|---|
| 7 | text_file = open("src/tmcsim/application.properties", "r") |
|---|
| 8 | except IOError: |
|---|
| 9 | print "Error: missing src/timc/application.properties file." |
|---|
| 10 | else: |
|---|
| 11 | lines = text_file.read().split('\n') |
|---|
| 12 | text_file.close() |
|---|
| 13 | return lines |
|---|
| 14 | |
|---|
| 15 | # Accessor to SVN version number |
|---|
| 16 | def getRevision(): |
|---|
| 17 | lines = getProperties() |
|---|
| 18 | revNumber = lines[2].split("=")[1] |
|---|
| 19 | return revNumber |
|---|
| 20 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.