Fix windows config path

This commit is contained in:
vitiko98 2020-12-07 16:37:51 -04:00
parent dd5ec5764c
commit bb84d7ebd5
2 changed files with 9 additions and 4 deletions

View File

@ -17,15 +17,16 @@ Seach and download Lossless and Hi-Res music from [Qobuz](https://www.qobuz.com/
#### Install qobuz-dl with pip #### Install qobuz-dl with pip
##### Linux / MAC OS / Windows ##### Linux / MAC OS / Windows
``` ```
pip3 install qobuz-dl --user pip3 install --upgrade qobuz-dl
``` ```
#### Run qobuz-dl and enter your credentials #### Run qobuz-dl and enter your credentials
##### Linux / MAC OS
``` ```
qobuz-dl qobuz-dl
``` ```
or ##### Windows
``` ```
qdl qobuz-dl.exe
``` ```
> If something fails, run `qobuz-dl -r` to reset your config file. > If something fails, run `qobuz-dl -r` to reset your config file.

View File

@ -10,7 +10,11 @@ import qobuz_dl.spoofbuz as spoofbuz
from qobuz_dl import downloader, qopy from qobuz_dl import downloader, qopy
from qobuz_dl.search import Search from qobuz_dl.search import Search
OS_CONFIG = os.path.join(os.environ["HOME"], ".config") or os.environ.get("APPDATA") if os.name == "nt":
OS_CONFIG = os.environ.get("APPDATA")
else:
OS_CONFIG = os.path.join(os.environ["HOME"], ".config")
CONFIG_PATH = os.path.join(OS_CONFIG, "qobuz-dl") CONFIG_PATH = os.path.join(OS_CONFIG, "qobuz-dl")
CONFIG_FILE = os.path.join(CONFIG_PATH, "config.ini") CONFIG_FILE = os.path.join(CONFIG_PATH, "config.ini")