[Tutor] search path
Christopher Arndt
chris.arndt at web.de
Sat Jul 22 19:39:06 CEST 2006
johnsonv3 schrieb:
> When one installs a program (such as Panda or Livewires) into python
> sitepackage folder is the python search path automnatically updated to
> search the newly installed folders and files?
Generally speaking, yes. The Python package (to use the proper name) either
needs to have a files '__init__.py' in its package directory
(see http://pytut.infogami.com/node8.html, section "Packages")
or the name of its package directory needs to be added to a .pth file
(see http://docs.python.org/lib/module-site.html)
Chris
More information about the Tutor
mailing list