retrieving the activity bundle directory

Michael Stone michael at laptop.org
Thu Oct 11 13:50:23 EDT 2007


You can also look for an environment variable named SUGAR_BUNDLE_PATH.

Michael

On Thu, Oct 11, 2007 at 07:20:09PM +0200, Bert Freudenberg wrote:
> Yes this came in after trial-3.
> 
> - Bert -
> 
> On Oct 11, 2007, at 19:04 , Victor Lazzarini wrote:
> 
> > Not in build 602 I presume (as it does not work here). Will
> > upgrade and test (but Dan's solution works fine).
> >
> > Victor
> >
> > At 17:13 11/10/2007, Bert Freudenberg wrote:
> >
> >> On Oct 11, 2007, at 15:59 , Dan Williams wrote:
> >>
> >>> On Thu, 2007-10-11 at 14:29 +0100, Victor Lazzarini wrote:
> >>>> Hi everyone,
> >>>>
> >>>> does anyone know if is there a way to retrieve the
> >>>> activity bundle top directory name under python/sugar?
> >>>
> >>> You should be able to:
> >>>
> >>> from sugar.activity import activity
> >>>
> >>> my_bundle_path = activity.get_bundle_path()
> >>
> >> Also, with the recent launch refactorings the bundle directory is
> >> made the current working directory, so you can simply use relative
> >> path names.
> >>
> >> - Bert -
> >>
> >
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel



More information about the Devel mailing list