Commits

Vladimir Kolev committed c7b5c29

Applied patch from speps to fix issue #31

  • Participants
  • Parent commits bc0cbc5

Comments (0)

Files changed (1)

     except:
         pass
     CONFIG = ConfigObj("%s/.gsharkdown/gsharkdown.ini" % os.environ.get("HOME"))
-    CONFIG['down_path'] = os.path.join(glib.get_user_special_dir(glib.USER_DIRECTORY_MUSIC), "Grooveshark")
+    MUSIC_DIR = glib.get_user_special_dir(glib.USER_DIRECTORY_MUSIC) or os.path.join(os.environ.get("HOME"), "Music")
+    CONFIG['down_path'] = os.path.join(MUSIC_DIR, "Grooveshark")
     if os.path.isdir(CONFIG['down_path']) == False:
         try:
             os.makedirs(CONFIG['down_path'])