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/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Sugar-devel mailing list
[email protected]
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to