Set CurrentDirectory before incurring AggContext spin up
- Fixes inability to set AggContext DialogProvider via config file due to not yet set CurrentDirectory
This commit is contained in:
parent
c3a0a0c320
commit
c227b5a314
1 changed files with 4 additions and 4 deletions
|
|
@ -480,16 +480,16 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
staticDataPathOverride = TestContext.CurrentContext.ResolveProjectPath(5, "MatterControl", "StaticData");
|
||||
}
|
||||
|
||||
// Override the default SystemWindow type without config.json
|
||||
AggContext.Config.ProviderTypes.SystemWindow = "MatterHackers.Agg.UI.OpenGLSystemWindow, agg_platform_win32";
|
||||
|
||||
#if DEBUG
|
||||
string outputDirectory = "Debug";
|
||||
#else
|
||||
string outputDirectory = "Release";
|
||||
#endif
|
||||
|
||||
Environment.CurrentDirectory = TestContext.CurrentContext.ResolveProjectPath(5, "MatterControl", "bin", outputDirectory);
|
||||
Environment.CurrentDirectory = TestContext.CurrentContext.ResolveProjectPath(5, "MatterControl", "bin", outputDirectory);
|
||||
|
||||
// Override the default SystemWindow type without config.json
|
||||
AggContext.Config.ProviderTypes.SystemWindow = "MatterHackers.Agg.UI.OpenGLSystemWindow, agg_platform_win32";
|
||||
|
||||
#if !__ANDROID__
|
||||
// Set the static data to point to the directory of MatterControl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue