Show More
@@ -17,13 +17,20 b'' | |||||
17 |
|
17 | |||
18 | import os |
|
18 | import os | |
19 |
|
19 | |||
|
20 | __version__ = '' | |||
|
21 | ||||
20 |
|
22 | |||
21 | def get_version(): |
|
23 | def get_version(): | |
|
24 | global __version__ | |||
|
25 | if __version__: | |||
|
26 | return __version__ | |||
|
27 | ||||
22 | here = os.path.abspath(os.path.dirname(__file__)) |
|
28 | here = os.path.abspath(os.path.dirname(__file__)) | |
23 | ver_file = os.path.join(here, "VERSION") |
|
29 | ver_file = os.path.join(here, "VERSION") | |
24 | with open(ver_file, "rt") as f: |
|
30 | with open(ver_file, "rt") as f: | |
25 | version = f.read().strip() |
|
31 | version = f.read().strip() | |
26 |
|
32 | |||
|
33 | __version__ = version | |||
27 | return version |
|
34 | return version | |
28 |
|
35 | |||
29 | # link to config for pyramid |
|
36 | # link to config for pyramid |
General Comments 0
You need to be logged in to leave comments.
Login now