From 5a3f8b9a9b94a6e59286954ec3e5091275ef5b9f Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 9 Oct 2019 15:20:19 +0800 Subject: [PATCH] Use versioned config directory for profiles. Fixes #1664 --- gns3server/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/config.py b/gns3server/config.py index 07ad9ae2..7e8c3159 100644 --- a/gns3server/config.py +++ b/gns3server/config.py @@ -70,7 +70,7 @@ class Config: if self._profile: legacy_user_dir = os.path.join(appdata, appname, "profiles", self._profile) - versioned_user_dir = legacy_user_dir + versioned_user_dir = os.path.join(appdata, appname, version, "profiles", self._profile) else: legacy_user_dir = os.path.join(appdata, appname) versioned_user_dir = os.path.join(appdata, appname, version) @@ -107,7 +107,7 @@ class Config: if self._profile: legacy_user_dir = os.path.join(home, ".config", appname, "profiles", self._profile) - versioned_user_dir = legacy_user_dir + versioned_user_dir = os.path.join(home, ".config", appname, version, "profiles", self._profile) else: legacy_user_dir = os.path.join(home, ".config", appname) versioned_user_dir = os.path.join(home, ".config", appname, version)