[Dextrose] [Sugar-devel] [PATCH sugar-toolkit] Insert activity root path in front of the reset of sys.path

Aleksey Lim alsroot at activitycentral.org
Sun Feb 6 21:39:54 EST 2011

On Sun, Feb 06, 2011 at 07:22:12PM -0500, Samuel Greenfeld wrote:
> Not that would cause much of a slowdown, or that this would handle the 
> (hopefully unlikely) case where Python gains modules named identically 
> to Activity ones, but:
> What are we trying to solve here?  Are activities bundling third-party 
> Python libraries which have to be preferred in most cases over 
> system-provided ones (if present)?

In my mind, the situation when modules that come with activity have
higher priority than system ones is more natural/predictable.

Actually, the problem that triggered the issue in my case was screen.py
module, if pexpect(that has /screen.py) is not installed FlipSticks
works well. But if pexpect is installed, FlipSticks "magically" stops

> Wouldn't it be better to ensure Activity developers make proper use of 
> namespaces when developing them instead?
> On 2/6/2011 5:58 PM, Bernie Innocenti wrote:
> > On Sun, 2011-02-06 at 00:50 +0000, Aleksey Lim wrote:
> >> Otherwise it is possible to include, eg, system modules before local ones.
> > Seems like a good idea.
> >
> > Reviewed-by: Bernie Innocenti<bernie at codewiz.org>
> >


More information about the Dextrose mailing list