public void ExecutePython(string script_filename, string args) { //string script_filename = "playground_bitcoin.py"; //string args = string.Format("KRAKEN_OHLC {0} {1}", cboKrakenSymbols.Text, cboKrakenMinutes.Text); //EnableButton(false); IgnoreResetStatus = true; Status("Running Python script: " + script_filename + " ..."); StatusColor(Color.Yellow); GSystem.ProcessExited += GSystem_ProcessExited; StartStatusTimer(); try { GSystem.RunPython(script_filename, args, this.Handle); } catch (Exception ex) { string errorMsg = string.Format("An error occurred attempting to launch Python.\n\nCheck the app settings to ensure your Python is configured correctly.\n({0})", ex.Message); MessageBox.Show(this, errorMsg, "Python Error"); } }