private bool EngineHasPath(string path, IEngine pythonEngine) { bool found = false; foreach (string s in pythonEngine.ScriptSourceSearch()) { if (s == path) { found = true; break; } } return found; }