![](https://secure.gravatar.com/avatar/40a5c50818708b27e5a2b670b83ef264.jpg?s=120&d=mm&r=g)
Sept. 3, 2008
8:49 a.m.
Hello.
I have a problem with importing a script in a folder. The script is in a folder simple\index.py. This folder is in the root folder of my application. I use boost 1.33.1 with Python 2.4.
Here is my code:
PyObject *pObject = PyImport_ImportModule(const_cast<char*>(pcSkriptName.c_str()));
If I use pcSkriptName with value "index" all works right. Now I want to load this script in the folder simple. But pcSkriptName with value "simple.index" doesn't work.
What shell I do?
Thanks for responding.
Psssst! Schon das coole Video vom GMX MultiMessenger gesehen? Der Eine für Alle: http://www.gmx.net/de/go/messenger03