mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
IOURC is a text box instead of a file path
Fix https://github.com/GNS3/gns3-gui/issues/1662
This commit is contained in:
3 files changed
+28
-5
No files matched your search
@@ -224,6 +224,10 @@ class IOUVM(BaseNode):
|
||||
|
||||
iourc_path = self._config().get("iourc_path")
|
||||
if not iourc_path:
|
||||
# look for the iourc file in the temporary dir.
|
||||
path = os.path.join(self.temporary_directory, "iourc")
|
||||
if os.path.exists(path):
|
||||
return path
|
||||
# look for the iourc file in the user home dir.
|
||||
path = os.path.join(os.path.expanduser("~/"), ".iourc")
|
||||
if os.path.exists(path):
|
||||
@@ -232,10 +236,6 @@ class IOUVM(BaseNode):
|
||||
path = os.path.join(self.working_dir, "iourc")
|
||||
if os.path.exists(path):
|
||||
return path
|
||||
# look for the iourc file in the temporary dir.
|
||||
path = os.path.join(self.temporary_directory, "iourc")
|
||||
if os.path.exists(path):
|
||||
return path
|
||||
return iourc_path
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user