protected override void OnDoWork(DoWorkEventArgs e) { if (XsfUtil.IsPythonPresentInPath()) { base.OnDoWork(e); } else { this.progressStruct.Clear(); this.progressStruct.ErrorMessage = "ERROR: A directory containing the Python Interpreter (python.exe) cannot be found in your PATH environment variable."; ReportProgress(0, this.progressStruct); } }