better fix for patch 414, starting web2py from other folder

This commit is contained in:
mdipierro
2014-03-29 17:07:25 -05:00
parent 76654a6fbe
commit 8d11647a8d
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.9.5-trunk+timestamp.2014.03.29.00.57.10
Version 2.9.5-trunk+timestamp.2014.03.29.17.06.19
+4 -1
View File
@@ -45,4 +45,7 @@ if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage']
T.force(request.cookies['adminLanguage'].value)
#set static_version
response.static_version = open('VERSION').read().split(' ',1)[1].split('-')[0]
from gluon.settings import global_settings
response.static_version = global_settings.web2py_version.split('-')[0]