mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-17 08:35:08 -04:00
Fix Issue #14
Need to make the directory before constructing a Config object.
This commit is contained in:
parent
6edb422eff
commit
b844931528
1 changed files with 4 additions and 3 deletions
|
@ -10,12 +10,13 @@ from .core import MusicDL
|
|||
from .utils import init_log
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
config = Config(CONFIG_PATH)
|
||||
|
||||
if not os.path.isdir(CONFIG_DIR):
|
||||
os.makedirs(CONFIG_DIR)
|
||||
os.makedirs(CONFIG_DIR, exist_ok=True)
|
||||
if not os.path.isdir(CACHE_DIR):
|
||||
os.makedirs(CONFIG_DIR)
|
||||
os.makedirs(CONFIG_DIR, exist_ok=True)
|
||||
|
||||
config = Config(CONFIG_PATH)
|
||||
|
||||
|
||||
@click.group(invoke_without_command=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue