diff --git a/profile_ui.py b/profile_ui.py index 977844bd..562a6ca6 100644 --- a/profile_ui.py +++ b/profile_ui.py @@ -188,7 +188,7 @@ def create_or_update_profile_file(self, create: bool = False) -> bool: self.log("Profile: profile file created") # Ensure the parent directory exists - os.makedirs(get_config_dir_path(), exist_ok=True) + os.makedirs(get_config_dir_path(self.__PROFILES_FILENAME), exist_ok=True) try: with open(self.__PROFILES_FILEPATH, "w", encoding="utf_8") as f: