File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 297
297
print(f"Found XDG-Downloads: {download_directory}")
298
298
299
299
300
- if os.getenv('XDG_MUSIC_DIR') and os.path.isdir(os.getenv('XDG_MUSIC_DIR')) :
300
+ if os.getenv('XDG_MUSIC_DIR'):
301
301
music_directory = os.getenv('XDG_MUSIC_DIR')
302
302
print("Override music to: " + music_directory)
303
303
304
- if os.getenv('XDG_DOWNLOAD_DIR') and os.path.isdir(os.getenv('XDG_DOWNLOAD_DIR')) :
304
+ if os.getenv('XDG_DOWNLOAD_DIR'):
305
305
download_directory = os.getenv('XDG_DOWNLOAD_DIR')
306
306
print("Override downloads to: " + download_directory)
307
307
308
+ if music_directory:
309
+ music_directory = os.path.expandvars(music_directory)
310
+ if download_directory:
311
+ download_directory = os.path.expandvars(download_directory)
308
312
309
313
if not os.path.isdir(music_directory):
310
314
music_directory = None
You can’t perform that action at this time.
0 commit comments