mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 04:16:34 +00:00
Fix missing directory creation for config migration
This commit is contained in:
1 parent
198c9415f6
commit
227bac728a
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user