Bigger projects, including files?
Martin P. Hellwig
xng at xs4all.nl
Sat Apr 19 20:04:27 EDT 2008
globalrev wrote:
> if i have a larger project and want to divide my program into several
> files, how do i include these files in the mainprogram?
>
> using import someprojectfile doesnt work because import is for site-
> packages right and i dont want to put all my files
> in that folder.
>
> so how do i do it?
>
You can always add the path where the other files are to sys.path
I've posted a while ago something that sort of does that for
inter-package reference if the root is not in the sys.path
http://groups.google.com/group/comp.lang.python/browse_thread/thread/0e29ab20b4d4bc97
hth
--
mph
More information about the Python-list
mailing list