mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-29 11:06:14 +00:00
Fixed #6
This commit is contained in:
parent
11447d606b
commit
263ecd4be0
|
@ -46,7 +46,9 @@ def getMusicFolder():
|
||||||
if (homedata / '.config' / 'user-dirs.dirs').is_file() and musicdata == "":
|
if (homedata / '.config' / 'user-dirs.dirs').is_file() and musicdata == "":
|
||||||
with open(homedata / '.config' / 'user-dirs.dirs', 'r') as f:
|
with open(homedata / '.config' / 'user-dirs.dirs', 'r') as f:
|
||||||
userDirs = f.read()
|
userDirs = f.read()
|
||||||
musicdata = re.search(r"XDG_MUSIC_DIR=\"(.*)\"", userDirs).group(1)
|
musicdata_search = re.search(r"XDG_MUSIC_DIR=\"(.*)\"", userDirs)
|
||||||
|
if musicdata_search:
|
||||||
|
musicdata = musicdata_search.group(1)
|
||||||
musicdata = Path(os.path.expandvars(musicdata))
|
musicdata = Path(os.path.expandvars(musicdata))
|
||||||
musicdata = checkPath(musicdata)
|
musicdata = checkPath(musicdata)
|
||||||
if os.name == 'nt' and musicdata == "":
|
if os.name == 'nt' and musicdata == "":
|
||||||
|
|
Loading…
Reference in a new issue