Use abspath instead of join for absolute path

This commit is contained in:
Phuoc-Hieu Le 2023-07-13 10:54:30 +07:00
parent 5d988dc5fd
commit baf86afdbc

View File

@ -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):