13
0

on windows, allow ARDOUR_DATA_PATH envvar to be used in the data search path

This commit is contained in:
Paul Davis 2022-04-28 14:32:50 -06:00
parent 706140181e
commit 51ebb143de

View File

@ -290,14 +290,13 @@ ardour_data_search_path ()
search_path += user_config_directory();
#ifdef PLATFORM_WINDOWS
search_path += windows_search_path ();
#else
#endif
std::string s = Glib::getenv("ARDOUR_DATA_PATH");
if (s.empty()) {
std::cerr << _("ARDOUR_DATA_PATH not set in environment\n");
} else {
search_path += Searchpath (s);
}
#endif
}
return search_path;