fixed issue 1599:Shell relative paths while webserver's are absolute in dal, thanks Alan
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user