Home My Page Projects OpenAlea
Summary Activity Forums Tracker Lists Tasks Docs News SCM Files

Forum: developers

Monitor Forum | Start New Thread Start New Thread
RE: namespace import syntax [ Reply ]
By: Samuel Dufour-Kowalski on 2007-04-19 14:08
[forum:3141]
We can also use an oenalea.pth

See :
http://docs.python.org/lib/module-site.html

RE: namespace import syntax [ Reply ]
By: Christophe Pradal on 2007-04-10 14:14
[forum:3084]
Cons:
* Namespace collision with other modules
* You can make aliases:
import openalea.titi.tata.truc
truc= openalea.titi.tata.truc

namespace import syntax [ Reply ]
By: Jérôme Chopard on 2007-04-10 11:54
[forum:3082]
shall we put openalea into python path
contra :
- openalea will not appear in import sentences
- allow user to install modules outside of openalea

pro :
- shorter import
- allow usage of isinstance inside a module without refering to openalea namespace