The program is running the following code...
PyImport_Import( PyString_FromString("python.PlayerManager") );
This is meant to import the file PlayerManager.py inside of the python
folder. However it throws the following Python Error (Gotten through
PyErr_Print())
ImportError: No module named python.PlayerManager
I am using 2.6.4 so I can't call it by the filename, does anyone know
how to do a proper import?
Austin
On Feb 8, 12:42 am, Austin Bingham <austin.bing...@gmail.com> wrote:
> Does the 'python' directory contain a file named '__init__.py'? This
> is required to let that directory act as a package (see:http://docs.python.org/tutorial/modules.html#packages);without it,
> you'll see the symptoms you're seeing.
>
> Austin
>
Your 'python' package directory must be in a directory listed in
sys.path. I would print that check.
Austin
On Mon, Feb 8, 2010 at 5:52 PM, Terry Reedy <tjr...@udel.edu> wrote:
> On 2/7/2010 10:56 PM, 7H3LaughingMan wrote:
>>
> Your 'python' package directory must be in a directory listed in sys.path. I
> would print that check.
>