The problem with text output in DDT with PyD
Dennis Ritchie via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Wed Apr 22 00:06:55 PDT 2015
In the Eclipse console does not work output version Python. When
I run the executable through the CMD .\mypyd.exe, then everything
works fine:
3.4.3 (v3.4.3: 9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600
32 bit (Intel)]
app.d
-----
import std.stdio;
import pyd.pyd, pyd.embedded;
shared static this() {
py_init();
}
void main() {
auto script = new InterpContext;
script.py_stmts("import sys");
script.py_stmts("print(sys.version)"); // prints nothing in the
Eclipse console
}
-----
dub.json
-----
{
"name" : "myPyD",
"description" : "Hello World - A minimal DUB bundle.",
"dependencies" : {
"pyd": "~>0.9.7",
},
"subConfigurations": {
"pyd": "python34",
}
}
-----
What could be the problem?
More information about the Digitalmars-d-ide
mailing list