[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] mirra 0.2.5



> By the way, how do you do that trick of importing .py modules from a
> subdirectory of your main code? (ie. "main.py" in C:\Foo imports files
> from C:\Foo\Clutter.) I haven't been able to duplicate it.

You need to make a python package. This is as simple as placing a file
named __init__.py into your subdirectory.