[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] image-loading path



Yes, but the path is relative to where you are running the script
from, not where the script is.

On Mon, Jul 14, 2008 at 11:43 AM, Olaf Nowacki <ioa@xxxxxxx> wrote:
> hi everyone,
> is it possible to load an image with pygame.image.load() that is not in the
> same folder (or a subfolder), but higher up in the file-tree? i tried giving
> "../data/images/image.png" as argument, but it didn't work.
> here i tried to illustrate what i mean:
> [game]
> |- [engine]
>     |- tools.load_image()
> |- [data]
>     |-[images]
>         |- image.png
> thanks in advance!
> olaf
>