Dont change path names because plugins use them

This commit is contained in:
Philipp Hörist 2018-04-21 21:28:19 +02:00
parent 848c5cbdd0
commit c0c16dbf94
2 changed files with 5 additions and 5 deletions

View File

@ -134,9 +134,9 @@ class ConfigPaths:
user_dir_paths = [
('TMP', tempfile.gettempdir()),
('CONFIG_ROOT', self.config_root),
('CACHE_ROOT', self.cache_root),
('DATA_ROOT', self.data_root),
('MY_CONFIG', self.config_root),
('MY_CACHE', self.cache_root),
('MY_DATA', self.data_root),
]
for path in user_dir_paths:

View File

@ -863,7 +863,7 @@ def check_soundfile_path(file_, dirs=None):
:return the path to file or None if it doesn't exists.
"""
if dirs is None:
dirs = [app.configpaths.get('DATA_ROOT'),
dirs = [app.configpaths.get('MY_DATA'),
app.DATA_DIR]
if not file_:
@ -891,7 +891,7 @@ def strip_soundfile_path(file_, dirs=None, abs=True):
return None
if dirs is None:
dirs = [app.configpaths.get('DATA_ROOT'),
dirs = [app.configpaths.get('MY_DATA'),
app.DATA_DIR]
name = os.path.basename(file_)