mirror of
https://github.com/vale981/rmview
synced 2025-03-04 16:51:38 -05:00
Avoid FileExists error
This commit is contained in:
parent
a868eb6f65
commit
07c0f811d4
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ class rMViewApp(QApplication):
|
|||
|
||||
confpath = os.path.abspath(self.config_file or self.DEFAULT_CONFIG)
|
||||
if not os.path.isfile(confpath):
|
||||
os.makedirs(os.path.dirname(confpath))
|
||||
os.makedirs(os.path.dirname(confpath), exist_ok=True)
|
||||
with open(confpath, "w") as f:
|
||||
json.dump({
|
||||
"ssh": {"address": [self.config['ssh'].get('address', "10.11.99.1")]},
|
||||
|
|
Loading…
Add table
Reference in a new issue