How to simulate packages?

Gabriel Genellina gagsl-py2 at
Thu Aug 21 20:26:35 CEST 2008

En Thu, 21 Aug 2008 13:04:51 -0300, Daniel <daniel.watrous at>  

> I have a project that I've decided to split into packages in order to
> organize my code better.  So what I have looks something like this
> src
>   -module1
>   -module2
> Everytime I run I need to import  Right now
> I'm using an ugly little thing to do my import (see below).  Isn't
> there some python mechanism to handle packages?

Sure - Python *has* packages, you don't have to "simulate" them.

Gabriel Genellina

More information about the Python-list mailing list