-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Depends on what you mean.  There's directories, and then there's packages,
which are also directories.  If you have:

/usr/lib/pythonX.Y/site-packages/<package>

then you should not add anything to Python's search path.  (I don't know if
you're familiar with Python programming so: a <package> is a directory
containing __init__.py, and treated semantically like a regular module, but
with submodules.)

If you have /usr/lib/pythonX.Y/site-packages/<directory>

where <directory> is not a package (does not contain __init__.py, is not meant
to act like a module) then you might need to create a .pth file to find names
inside that directory (see Python documentation for pth files).  It is not
that uncommon for Python software to get installed that way, but it should not
be done except for a very good reason.

.pth files are the least heinous way to modify python's search path at install
time.

C


Jean-Denis Giguere wrote: | Hi all ! | | I would like to know if directories containing modules under | /usr/lib/pythonX.Y/site-packages/ should be added to python's search | path. If yes, is there a unified way to do this ? | | Thank you ! | | Jean-Denis |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB9r8S3A5SrXAiHQcRAkNeAJ9GrnF9dpYivxlTC6fdc1/uhQ5Q6QCgqWs4
fW9vVrG0DqMQ1hMUQlAOKoY=
=+Ik+
-----END PGP SIGNATURE-----


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to