I have a function that executes a python script. The python script calls the jira library to connect to it's server. Then it will return data and will create an excel file for it. The python script is running ok when I executed manually, but the problem is when I call it on my asp function it returns error
there are no module name jira
I guess IronPython doesn't have library for jira because I just installed it on Python Library.
I even try to execute the script thru Process and it was triggered but unfortunately it doesn't return anything.
here is my code for executing a python thru IronPython
ScriptRuntimeSetup setup = Python.CreateRuntimeSetup(null);
ScriptRuntime runtime = new ScriptRuntime(setup);
ScriptEngine engine = Python.GetEngine(runtime);
var paths = engine.GetSearchPaths();
paths.Add(@"C:\Users\jdecena\AppData\Local\Programs\Python\Python35\Lib");
engine.SetSearchPaths(paths);
ScriptSource source = engine.CreateScriptSourceFromFile("C:/Dave/jirautomatic/try.py");
ScriptScope scope = engine.CreateScope();
source.Execute(scope);
dynamic Generate = scope.GetVariable("connect_to_jira_and_get_projects");
dynamic gen = Generate();
gen();
and here is my code executing python thru process
Process proc = new Process();
proc.StartInfo.FileName = @"C:\Dave\jirautomatic\try.py";
proc.Start();
proc.WaitForExit();
proc.Dispose();
Is there a way that I can include the Library on Python to IronPython?
TIA