<div>If the documentation is not clear to you as it was not to me, the following adds the search path, /Volumes/iDisk/match/python/matchmod, to the list of places python looks for modules, I have this included  as an import statement at the beginning of a program.</div>
<div><br></div><div>from sys import path</div><div>path.append("/Volumes/iDisk/match/python/matchmod")</div><div><br></div>Thanks<br>Vincent Davis<br>720-301-3003<br>
<br><br><div class="gmail_quote">On Fri, Mar 6, 2009 at 12:10 AM, Christian Heimes <span dir="ltr"><<a href="mailto:lists@cheimes.de">lists@cheimes.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Muddy Coder schrieb:<br>
<div class="im">> Hi Folks,<br>
><br>
> If I have a python file foo.py in the current directory, I can simply<br>
> import it in the way below:<br>
><br>
> import foo<br>
><br>
> when a project keeps grow, more and more Python files are created, and<br>
> they are also needed to put into different directories. Then, a<br>
> problem comes: how to import the Python files residing in the other<br>
> directories? Somebody helps me out? Thanks!<br>
<br>
</div>Use packages: <a href="http://docs.python.org/tutorial/modules.html#packages" target="_blank">http://docs.python.org/tutorial/modules.html#packages</a><br>
<font color="#888888"><br>
Christian<br>
</font><div><div></div><div class="h5"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>