On Wednesday, 11 March 2015 at 19:32:05 UTC, Matt wrote:
I'm trying to build a simple platformer using SDL2 and python
to script entities, but I'm struggling to include Pyd. I'm
using DMD v2.066.1, with dub as the package manager, and
derelict for the SDL2 bindings.
Now, when I add Pyd to my dub.json everything works fine, but
as soon as I add py_init(), my code compiles and links fine,
but I get "ImportError: No module named site". Have I done
something wrong? Can anyone shed some light on this? Or am I
asking in the wrong place?
Any help would be very much appreciated, and I can provide code
on request if that helps.
Well, apparently I didn't check the Python side of things. "site"
is a python module that is loaded by the interpreter, meaning my
python environment variables apparently haven't been set
properly, despite the fact that my standalone interpreter can
find them with no problem. I'm going to keep plugging away at
this, see if there's any way to sort this out.