[Sugar-devel] How is the 'default' string in '.sugar/default' determined?

Sascha Silbe sascha-ml-ui-sugar-devel at silbe.org
Tue Aug 18 05:15:12 EDT 2009


On Tue, Aug 18, 2009 at 10:52:16AM +0200, Martin Langhoff wrote:

>> You can use sugar.env.get_profile_path() in all those Sugar versions.
> How can I get that safely from a cronjob?
You could try the following:

PROFILE_PATH="$(python -c 'import sugar.env ; print 
sugar.env.get_profile_path()')"

Verified to work inside sugar-jhbuild. Should work for distro packages 
as well, but don't have any installation to test that.

CU Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090818/e677905f/attachment.pgp 


More information about the Sugar-devel mailing list