Hex is done and working
This commit is contained in:
@@ -15,34 +15,14 @@ namespace ConsoleApp
|
||||
static void Main(string[] args)
|
||||
{
|
||||
_bootstrapper = BootStrapper.BootstrapSystem(new CoreModule());
|
||||
var simResults = _bootstrapper.Resolve<ISimulationResults>();
|
||||
_userConsole = new UserConsole();
|
||||
Initialization();
|
||||
GenerateImages();
|
||||
simResults.WriteResults();
|
||||
Console.WriteLine("Program Completed");
|
||||
}
|
||||
|
||||
private static void GenerateImages()
|
||||
{
|
||||
// var generateMap= "python3 ConsoleApp/plot.py";
|
||||
// System.Diagnostics.Process.Start("CMD.exe",generateMap);
|
||||
//
|
||||
var file = Path.Combine("./",Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"plot.py");
|
||||
ProcessStartInfo startInfo = new ProcessStartInfo()
|
||||
{
|
||||
FileName = "python3",
|
||||
Arguments = file,
|
||||
UseShellExecute = true
|
||||
};
|
||||
Process proc = new Process()
|
||||
{
|
||||
StartInfo = startInfo,
|
||||
};
|
||||
proc.Start();
|
||||
while (!proc.HasExited)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static void Initialization()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user