##// END OF EJS Templates
feat(version): cache version to read from it not from file
super-admin -
r1189:2c7f5b16 default
parent child Browse files
Show More
@@ -17,13 +17,20 b''
17 17
18 18 import os
19 19
20 __version__ = ''
21
20 22
21 23 def get_version():
24 global __version__
25 if __version__:
26 return __version__
27
22 28 here = os.path.abspath(os.path.dirname(__file__))
23 29 ver_file = os.path.join(here, "VERSION")
24 30 with open(ver_file, "rt") as f:
25 31 version = f.read().strip()
26 32
33 __version__ = version
27 34 return version
28 35
29 36 # link to config for pyramid
General Comments 0
You need to be logged in to leave comments. Login now