Skip to content

Commit

Permalink
fix key extraction on MacOS (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanljones committed Feb 12, 2025
1 parent 31df6f9 commit 7b4a27b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyrekordbox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,10 @@ def _update_sqlite_key(opts, conf):
if sys.platform == "win32":
executable = conf["install_dir"] / "rekordbox.exe"
elif sys.platform == "darwin":
executable = (
conf["install_dir"] / "Contents" / "MacOS" / "rekordbox"
)
install_dir = conf["install_dir"]
if not str(install_dir).endswith(".app"):
install_dir = install_dir / "rekordbox.app"
executable = install_dir / "Contents" / "MacOS" / "rekordbox"
else:
# Linux: not supported
logger.warning(f"OS {sys.platform} not supported!")
Expand Down

0 comments on commit 7b4a27b

Please sign in to comment.