[Chicago] import question

Massimo Di Pierro mdipierro at cs.depaul.edu
Wed Jan 23 16:25:11 CET 2008

specifically I am trying to place the python-openid module
into web2py.gluon.contrib folder. I submitted a ticket to the openid  
people. Worst case scenario I will edit all of their .py files and  
change the imports.

There does not seem to be a better solution. Thank you all.


On Jan 23, 2008, at 8:42 AM, Martin Maney wrote:

> On Tue, Jan 22, 2008 at 04:55:59PM -0600, Massimo Di Pierro wrote:
>> This does not solve the problem because requires me to edit  
>> __init__.py
> If that's the chief desiderata, then your solution is to alter  
> sys.path
> in the code which imports test to make the existing imports in the  
> test
> module work as-is.  If you can live with having to edit them once, you
> can use relative imports (though that may need another edit down the
> road, when Python once again acquires an incompatible change without
> changing the major version number... that can be avoided if you don't
> care about breaking it for 2.4 right now).
>> Moreover other itself imports test.other2 which imports  
>> test.other3 etc.
>> All files assume that that test is installed.
> Lack of proper planning up front often leads to the need to make such
> changes.  It's agile, baby!
> --
> ...that obsessive conviction, so common among authors and composers,
> that all similarities between their works and any others which appear
> later must inevitably be ascribed to plagiarism. -- 2nd Circuit, 1945
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago

More information about the Chicago mailing list