From 9c15293d44be152a3ede2d217f989ca3edfd7189 Mon Sep 17 00:00:00 2001 From: nathom Date: Sat, 31 Jul 2021 09:28:07 -0700 Subject: [PATCH] Fix #131 --- rip/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rip/config.py b/rip/config.py index 6e2e133..7223566 100644 --- a/rip/config.py +++ b/rip/config.py @@ -64,6 +64,7 @@ class Config: self.load() else: logger.debug("Creating toml config file at '%s'", self._path) + os.makedirs(os.path.dirname(self._path), exist_ok=True) shutil.copy(self.default_config_path, self._path) self.load() self.file["downloads"]["folder"] = DOWNLOADS_DIR