[sugar] how to reference files in activities

Marco Pesenti Gritti mpg
Fri Feb 16 14:15:10 EST 2007


On Fri, 2007-02-16 at 17:08 -0200, "Jo?o Bosco A. Pereira Filho" wrote:
> Hi!
> 
>     Does anybody knows the proper way to reference a image file in a 
> sugar activity? Is there any environment variable that points to the 
> "main" folder of the activity?
> 
>    

--

from sugar import env
activity_path = env.get_bundle_path()

--


Marco




More information about the Sugar-devel mailing list