Howto access an activity sub-directory?

Bert Freudenberg bert at freudenbergs.de
Fri Mar 28 14:55:32 EDT 2008


On 28.03.2008, at 19:48, Kent Loobey wrote:
> I am trying to get at a resource in my activities "fonts" sub- 
> directory.  My
> activity finds it just fine when running under Sugar but can't find  
> it with
> the same code when running in a shell.
>
>        self.fontPath = os.path.join( 'fonts', 'DesiredResouce.ttf' )
>        self.desiredFont = pygame.font.Font( self.fontPath, 96 )
>
> Any suggestions?

Maybe http://dev.laptop.org/ticket/6286 ?

- Bert -





More information about the Devel mailing list