Merge branch 'preview' of https://github.com/continuedev/continue into preview
This commit is contained in:
commit
d1ea4ef9ad
1 changed files with 4 additions and 1 deletions
|
|
@ -519,7 +519,10 @@ class ContinueConfig(BaseModel):
|
|||
f.write(default_config_json)
|
||||
|
||||
# Rename config.py to config.old.py
|
||||
os.rename(py_path, py_path.replace(".py", ".old.py"))
|
||||
old_path = py_path.replace(".py", ".py.old")
|
||||
if os.path.exists(old_path):
|
||||
os.remove(old_path)
|
||||
os.rename(py_path, old_path)
|
||||
|
||||
return ContinueConfig.load_default()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue