Calling python script from a d program

Seb via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 28 23:34:03 PST 2017


On Wednesday, 1 March 2017 at 06:56:03 UTC, Aayush wrote:
> Hi,
>
> I want to call a python script from a d program. Can someone 
> please help me?
> Thanks.

If you simply want to call your script, have a look at std.process

https://dlang.org/phobos/std_process.html

For more interoperability between the D and Python, you can use 
pyd:

https://github.com/ariovistus/pyd
http://pyd.readthedocs.io/en/latest/embed.html

We are happy to help, but please use D.Learn in the future ;-)


More information about the Digitalmars-d mailing list