Re: C/C++ Import

2010-02-08 Thread 7H3LaughingMan
The folder does contain a file named '__init__.py'. However it contains nothing inside of the file. 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

Re: C/C++ Import

2010-02-08 Thread Terry Reedy
On 2/7/2010 10:56 PM, 7H3LaughingMan wrote: To make the background information short, I am trying to take a program that uses Python for scripting and recompile it for Linux since it originally was built to run on Win32. The program itself was designed to be able to be compiled on Linux and

Re: C/C++ Import

2010-02-08 Thread Austin Bingham
Just to elaborate on Terry's point a bit, sys.path is influenced (in part) by the PYTHONPATH environment variable. If you find that the directory containing 'python' is not in sys.path (which you can check with 'import sys; print sys.path'), add that directory to PYTHONPATH and try again. This may

C/C++ Import

2010-02-07 Thread 7H3LaughingMan
To make the background information short, I am trying to take a program that uses Python for scripting and recompile it for Linux since it originally was built to run on Win32. The program itself was designed to be able to be compiled on Linux and someone made there on release with source that

Re: C/C++ Import

2010-02-07 Thread Austin Bingham
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 On Mon, Feb 8, 2010 at 4:56 AM, 7H3LaughingMan