fixed issue 1599:Shell relative paths while webserver's are absolute in dal, thanks Alan

This commit is contained in:
mdipierro
2013-07-22 04:10:36 -05:00
parent 87ea056565
commit b192634946
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.22.04.03.41
Version 2.6.0-development+timestamp.2013.07.22.04.09.52
+5
View File
@@ -567,6 +567,11 @@ class ConnectionPool(object):
""" this actually does not make the folder. it has to be there """
self.folder = getattr(THREAD_LOCAL,'folder','')
if (os.path.isabs(self.folder) and
isinstance(self, UseDatabaseStoredFile) and
self.folder.startswith(os.getcwd())):
self.folder = os.path.relpath(self.folder, os.getcwd())
# Creating the folder if it does not exist
if False and self.folder and not exists(self.folder):
os.mkdir(self.folder)