Fix missing directory creation for config migration

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-07-05 10:30:24 +02:00
1 parent 198c9415f6
commit 227bac728a
1 file changed
+1
+1
View File
@@ -228,6 +228,7 @@ class SerenaConfig:
old_config_path = os.path.join(REPO_ROOT, cls.CONFIG_FILE)
if os.path.exists(old_config_path):
log.info(f"Moving Serena configuration file from {old_config_path} to {config_path}")
os.makedirs(os.path.dirname(config_path), exist_ok=True)
shutil.move(old_config_path, config_path)
return config_path