[C++-sig] Re: importing module
David Abrahams
dave at boost-consulting.com
Mon Jul 21 16:42:31 CEST 2003
Mattheos Kakaris <m.kakaris at nki.nl> writes:
> while running bjam in the boost_1_30_0/libs/python/example/tutorial
> folder for the hello.cpp example it creates the following directory
> structure:
> /bin/hello.so/gcc/debug/runtime-link-dynamic/shared-linkable-true
>
> When running Python and trying to import module hello, it rightfully gives the
> message:
> ImportError: No module named hello
>
> What should I do so that python will always know were to look for
> the module?
You can set your PYTHONPATH environment variable to contain the
directory where the module is created, or you can add the following
line to your Jamfile:
stage . : hello ;
and it will be copied into the current directory.
Joel, you probably ought to add this stage line to the tutorial, eh?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list