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

Aleksey Lim alsroot at activitycentral.org
Mon Feb 7 00:43:37 EST 2011

On Mon, Feb 07, 2011 at 12:13:24AM -0500, Benjamin M. Schwartz wrote:
> On 02/06/2011 09:39 PM, Aleksey Lim wrote:
> > In my mind, the situation when modules that come with activity have
> > higher priority than system ones is more natural/predictable.
> I attempted to do the reverse with Watch Me.  Watch Me includes binary
> python modules that are not installed by default in OLPC's builds, so
> Watch Me includes binaries, but the binaries only work on Fedora 9 (OLPC
> 8.2.*, I think).  Therefore, it also includes a shim layer that ensures
> that the bundled binary modules always have lower priority than
> system-installed modules if they are installed.
> So I recommend not assuming that the priority only goes one way.

The question is what (FlipSticks vs WatchMe) usecase is more usual and
what fails are more unpredictable :).

In my mind, when people are coding end applications whey should not care
about names of modules (assuming that local modules will be imported
in any case) they are creating (in case of comparing with coding libraries).

In cases like WatchMe (in my mind special cases), it is all time
possible to change sys.path in particular way before including the
rest of WatchMe code. On other side, having requirement to do something
special for regular activities, sounds overkill.


More information about the Dextrose mailing list