Made the mac able to find the static data folder from the solution file.
This commit is contained in:
parent
04b7da0a59
commit
907e73094a
1 changed files with 9 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue