Bigger projects, including files?
Martin P. Hellwig
xng at xs4all.nl
Sun Apr 20 02:04:27 CEST 2008
> 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
More information about the Python-list