It's an escape character issue.
Since you are pasting source code in your source code, you need to double
escape. Probably as follows:
PythonEngine.RunSimpleString("execfile('c:tempa.py')");
the c# parser turns that into: execfile('c:\\temp\\a.py')
And then python runs those escape c
What happens when you run a compiled application like mine, that has both c#
and python console output, directly from within the windows command line
cmd.exe? Do you see the WriteLine() results from C# but not PythonNet?
That will tell you if it's an execution environment issue or an actual
pr
Now I'm getting different error message after I have nPython.exe which I
compiled from source code.
According to the comments from test_module.py,
Line 209
# This should fail until System.Windows.Forms has been
# imported or that assembly has been explicitly loaded.
Hi,
I ran every tests from src\tests. However, I can't run runtests.py and
test_module.py.
test_module.py has an error message in console window and pops up "Python
Console" with "Python Console has stopped working" message. Would you tell
me what I need to check to run this script? It looks to