Skip to content

Commit

Permalink
Permissions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
7x11x13 committed Jun 20, 2024
1 parent 7134f4a commit 5cff160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scdl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- encoding: utf-8 -*-
"""Python Soundcloud Music Downloader."""
__version__ = "v2.8.0"
__version__ = "v2.8.1"
4 changes: 2 additions & 2 deletions scdl/scdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def main():
config["scdl"]["client_id"] = client.client_id
# save client_id
config_file.parent.mkdir(parents=True, exist_ok=True)
config_lock = filelock.FileLock(default_config_file + ".scdl.lock", timeout=10)
config_lock = filelock.FileLock(str(config_file) + ".scdl.lock", timeout=10)
with config_lock:
with open(config_file, "w", encoding="UTF-8") as f:
config.write(f)
Expand Down Expand Up @@ -289,7 +289,7 @@ def get_config(config_file: pathlib.Path) -> configparser.ConfigParser:

default_config_file = pathlib.Path(__file__).with_name("scdl.cfg")

config_lock = filelock.FileLock(str(default_config_file) + ".scdl.lock", timeout=10)
config_lock = filelock.FileLock(str(config_file) + ".scdl.lock", timeout=10)

with config_lock:
# load default config first
Expand Down

0 comments on commit 5cff160

Please sign in to comment.