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

Tomeu Vizoso tomeu at sugarlabs.org
Tue Aug 18 04:43:31 EDT 2009


On Tue, Aug 11, 2009 at 17:24, Martin Langhoff<martin.langhoff at gmail.com> wrote:
> In the Sugar internals, how do you obtain the Sugar config storage
> directory? Moreover, what is the /correct/, recommended way to do it,
> one that will work on .82, .84 & .86 from activities, Sugar Shell
> code... and cronjobs (that run under the same user, but different ENV,
> and not spawned by sugar shell).

'default' is the name of the profile. If you want to use a different
profile, you can set the env var SUGAR_PROFILE.

You can use sugar.env.get_profile_path() in all those Sugar versions.

Regards,

Tomeu

> cheers,
>
>
>
>
> m
> --
>  martin.langhoff at gmail.com
>  martin at laptop.org -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning


More information about the Sugar-devel mailing list