Tagged Questions

0
votes
0answers
12 views

Embedding Python in Visual C++ and runtime error R6034

So over the past week or so I have been experimenting with embedding a python script into C. I have done this in successive stages. For one of my first attempts I would call my python script from C ...
2
votes
1answer
58 views

Why does PyImport_Import fail to load a module from the current directory?

I'm trying to run the embedding example and I can't load a module from the current working directory unless I explicitly add it to sys.path then it works: PyRun_SimpleString("import sys"); ...