mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
Finish to clean up local setting usage. Ref #1460
This commit is contained in:
1 parent
2cddb2c05a
commit
888c773dc0
7 files changed
+8
-22
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user