I have a C# Application and I want to run python script by passing some arguments and i also want to return some values from python. should i make a .dll file of my python script ? or is there any other way.
I can't use ironpython because i am unable to import my python project libraries in ironpython
thanks
Convert your Python script to executable using py2exe.exe, and call it from C# using Process.
Another way is to execute cmd command "python program.py" from your C# program. But, you've to make sure that environment variable for Python is set.
Executing Python Script from C# (ironPython is not an option)