Dont change path names because plugins use them
This commit is contained in:
parent
848c5cbdd0
commit
c0c16dbf94
|
@ -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:
|
||||
|
|
|
@ -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_)
|
||||
|
|
Loading…
Reference in New Issue