Made the mac able to find the static data folder from the solution file.

This commit is contained in:
larsbrubaker 2014-02-24 12:30:59 -08:00
parent 04b7da0a59
commit 907e73094a

View file

@ -110,14 +110,18 @@ namespace MatterHackers.MatterControl.DataStorage
{
return "StaticData";
}
else
{
return Path.Combine(ApplicationPath, "StaticData");
}
else if(Directory.Exists(Path.Combine(ApplicationPath, "StaticData")))
{
return Path.Combine(ApplicationPath, "StaticData");
}
else
{
return Path.Combine("..", "..", "StaticData");
}
default:
throw new NotImplementedException();
}
}
}
}