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

Sascha Silbe sascha-ml-reply-to-2011-2 at silbe.org
Sat Feb 12 13:57:53 EST 2011


Excerpts from Martin Langhoff's message of Tue Feb 08 04:46:32 +0100 2011:

> To wit, note the first entry at
> 
> $ python
> Python 2.7 (r27:82500, Sep 16 2010, 18:03:06)
[...]
> >>> sys.path
> ['', '/usr/lib/python27.zip', '/usr/lib/python2.7',
[...]

> The behaviour sought by Aleksey's patch makes sense. I am surprised
> that CWD isn't set to SUGAR_BUNDLE_PATH, maybe that needs to get fixed
> instead.

Thanks for disproving my assumption that it's something Python 2.x does
differently and pointing at the actual issue.

I agree that we should either change the working directory or tweak
sys.path, but I'm still a bit worried about compatibility.

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110212/3a9cc8e5/attachment-0001.pgp>


More information about the Sugar-devel mailing list