Finish to clean up local setting usage. Ref #1460

This commit is contained in:
grossmj committed 2022-03-31 12:05:47 +08:00
1 parent 2cddb2c05a
commit 888c773dc0
7 files changed
+8 -22

No files matched your search

-8
View File
@@ -442,14 +442,6 @@ class BaseManager:
return path
raise ImageMissingError(orig_path)
# For local server we allow using absolute path outside image directory
if Config.instance().settings.Server.local is True:
log.debug(f"Searching for '{orig_path}'")
path = force_unix_path(path)
if os.path.exists(path):
return path
raise ImageMissingError(orig_path)
# Check to see if path is an absolute path to a valid directory
path = force_unix_path(path)
for directory in valid_directory_prefices: