Fix the other data dirs

This commit is contained in:
Jon Tibble 2011-02-11 17:55:41 +00:00
parent dd62045678
commit 98a28d8580

View File

@ -179,9 +179,12 @@ def _get_os_dir_path(dir_type):
if dir_type == AppLocation.ConfigDir:
return os.path.join(BaseDirectory.xdg_config_home, u'openlp')
elif dir_type == AppLocation.DataDir:
return os.path.join(BaseDirectory.xdg_data_home, u'openlp')
return os.path.join(BaseDirectory.xdg_data_home, u'openlp',
u'data')
elif dir_type == AppLocation.CacheDir:
return os.path.join(BaseDirectory.xdg_cache_home, u'openlp')
if dir_type == AppLocation.DataDir:
return os.path.join(os.getenv(u'HOME'), u'openlp', u'data')
return os.path.join(os.getenv(u'HOME'), u'.openlp')
def _get_frozen_path(frozen_option, non_frozen_option):