[Chicago] import question

Massimo Di Pierro mdipierro at cs.depaul.edu
Tue Jan 22 23:10:42 CET 2008

Not sure I see how I would use it?
Doesn't is still require that I edit __init__.py?


On Jan 22, 2008, at 4:05 PM, skip at pobox.com wrote:

>     Massimo> Two natural solutions are:
>     Massimo> 1) edit __init__.py and replace test.other with write
>     Massimo> contrib.test.other. This is not acceptable for me  
> since I do not want
>     Massimo> to maintain the test module.
>     Massimo> 2) add contrib to the path. This is also not  
> acceptable because
>     Massimo> creates countless problems with py2exe and py2app. I  
> have many
>     Massimo> modules and files with similar issues.
>     Massimo> Does anybody know of a third solution?
> 2.6 (maybe 2.5 as well?) has some relative import notation using dots,
> similar to, but not identical to unix parent directory notation.  I  
> think
> you want something like
>     from .test.other import something
> Skip
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago

More information about the Chicago mailing list