B612-Asteroid-Institute / adam_home

ADAM python client and notebooks
MIT License
14 stars 8 forks source link

Windows: ConfigManager.set_default_env() will fail when renaming the config #131

Closed carise closed 3 years ago

carise commented 3 years ago

Due to https://stackoverflow.com/a/30175514/2896175

https://github.com/B612-Asteroid-Institute/adam_home/blob/master/adam/config_manager.py#L87

FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Users\\redacted\\.config\\adam\\config.4852' -> 'C:\\Users\\redacted\\.config\\adam\\config'