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
@@ -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 """
|
""" this actually does not make the folder. it has to be there """
|
||||||
self.folder = getattr(THREAD_LOCAL,'folder','')
|
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
|
# Creating the folder if it does not exist
|
||||||
if False and self.folder and not exists(self.folder):
|
if False and self.folder and not exists(self.folder):
|
||||||
os.mkdir(self.folder)
|
os.mkdir(self.folder)
|
||||||
|
|||||||
Reference in new issue
Block a user