[sugar] sugar activities dir
Marco Pesenti Gritti
mpg
Fri Jan 19 10:21:53 EST 2007
On Fri, 2007-01-19 at 12:15 -0300, Gonzalo Delgado wrote:
> 2007/1/19, Marco Pesenti Gritti <mpg at redhat.com>:
> >
> > sugar.env.sugar_activities_dir is actually obsolete, it was used by the
> > old activities system. I just removed it in git.
> >
> > Any specific reason you was trying to use it?
> >
> > Marco
> >
> >
>
> Well, I needed to reach my activity directory to load a glade file.
> I've seen other activities (PenguinTV, for example) use a different
> approach to do this, but I was looking for what Sugar offered to do
> that. Which would be the "standard" or conventional way?
>
>
Yep.. try:
from sugar import env
path = env.get_bundle_path()
Marco
More information about the Sugar-devel
mailing list