Python ModuleNamespace

Discussion about using Python with libRocket.

Re: Python ModuleNamespace

Postby AFineTapestry on Sun Jul 06, 2014 8:20 pm

Hi Supertim,

I've not had any more luck solving this yet. I've had to change platform to OSX and I'm finding that I can't even get my Python bindings to work and until that is I fixed I've not been able to work through your sample. I'll let you know when I get that far though.

Cheers,
AFT
AFineTapestry
Rocket Engineer
Rocket Engineer
 
Posts: 11
Joined: Fri Jun 13, 2014 8:55 am

Re: Python ModuleNamespace

Postby AFineTapestry on Tue Jul 22, 2014 6:39 pm

Hi Supertim,

I finally managed to get everything working (it was a problem with boost::python being statically compiled) so I could get back to fixing this. Your suggestion worked!

Thank you very much. The only extra thing I had to change in the end was to change:
Code: Select all
PyObject* GetModuleNamespace();
to:
Code: Select all
PyObject* GetModuleNamespace() {
   return module_namespace;
}

so the definition could be found and I didn't have to play around with adding files into rocketcore.dll.

Thank you so much for your help with this.

Cheers,
AFT
AFineTapestry
Rocket Engineer
Rocket Engineer
 
Posts: 11
Joined: Fri Jun 13, 2014 8:55 am

Previous

Return to libRocket and Python


cron