.. _python_import:

=============================================================
Importing Python modules
=============================================================

.. _python_path:

Python search path
------------------

When Python encounters an import command  such as::
    
    >>> import myfcns

it attempts to find a file *myfcns.py* in its *search path*.  By default it
looks in the current working directory first and then in various system
libraries where Python modules are normally stored.  You can tell it to look
in other places by setting a Unix environment variable called *PYTHONPATH*.