[sugar] sugar activities dir

Owen Williams owen
Fri Jan 19 11:01:10 EST 2007


Good to know.  Post-B2 I'll start using this function.

owen

On Fri, 2007-01-19 at 16:24 +0100, Marco Pesenti Gritti wrote:
> 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
> 
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar
> 
> 



More information about the Sugar-devel mailing list