fixed issue 1599:Shell relative paths while webserver's are absolute in dal, thanks Alan
This commit is contained in:
1 parent
87ea056565
commit
b192634946
2 files changed
+6
-1
No files matched your search
@@ -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