Running scripts from C

Dirk Schippers dirkREMOVE at c3THISTOO.be
Mon Nov 25 10:45:23 EST 2002


Hi,

I have several python scripts which I run from my C program.
Everything works fine unless I use an import of an mx library in my scripts.
When I run the script in PythonWin, it works fine, but when using the C
program,
I get the exception importerror on mxDateTime.
Also strange is that the error states mxDateTime, while I use this line for
import:
from mx.Datetime import * (with a dot between mx and DateTime).

What am I doing wrong?
I use the Py_Initialize() and my PYTHONHOME and PYTHONPATH are correct I
think.
Copying the mx-directory into the c:\program files\python\lib\... directory
also doesn't do the trick.

Can anyone help me?

Thanks!
Regards,
Dirk.

ps. When replying to my email: remove the REMOVE and the THISTOO part...





More information about the Python-list mailing list