Use abspath instead of join for absolute path
This commit is contained in:
parent
5d988dc5fd
commit
baf86afdbc
@ -99,7 +99,7 @@ class FileManager:
|
|||||||
if os.path.isabs(path):
|
if os.path.isabs(path):
|
||||||
return path
|
return path
|
||||||
else:
|
else:
|
||||||
return os.path.join(self.app.root_path, path)
|
return os.path.abspath(path)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def thumbnail_directory(self):
|
def thumbnail_directory(self):
|
||||||
@ -108,7 +108,7 @@ class FileManager:
|
|||||||
if os.path.isabs(path):
|
if os.path.isabs(path):
|
||||||
return path
|
return path
|
||||||
else:
|
else:
|
||||||
return os.path.join(self.app.root_path, path)
|
return os.path.abspath(path)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def root_url(self):
|
def root_url(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user