On 20 Apr, 02:04, "Martin P. Hellwig" <x...@xs4all.nlwrote:
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.pathhttp://groups.google.com/group/comp.lang.python/browse_thread/thread/...
hth
--
mph
thanks. i saw now myself that import works if it is in the same folder
as well.