mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Allow arbitrary wildcards in config includes. Things like
Include-Modules = "addin-modules/*/config/*.ini" will now work. Adds Util.Glob, which will resolve a globbed path into a string list.
This commit is contained in:
@@ -188,10 +188,11 @@ namespace OpenSim
|
||||
{
|
||||
string path = Path.GetFullPath(
|
||||
Path.Combine(Util.configDir(), file));
|
||||
if (File.Exists(path))
|
||||
string[] paths = Util.Glob(path);
|
||||
foreach (string p in paths)
|
||||
{
|
||||
if (!sources.Contains(path))
|
||||
sources.Add(path);
|
||||
if (!sources.Contains(p))
|
||||
sources.Add(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user