[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] image-loading path
- To: pygame-users@xxxxxxxx
- Subject: [pygame] image-loading path
- From: "Olaf Nowacki" <ioa@xxxxxxx>
- Date: Mon, 14 Jul 2008 17:43:40 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 14 Jul 2008 11:43:46 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:x-google-sender-auth; bh=NfJAZ9A7xVnptfGNt2P+0H9zqLedVWKcn6kM6NruQsg=; b=GwjP8zQyusPM3dKaoIo9PrJ6MSsQrHnYzUz6Syawdsja0C3UJG2eeuYEwouFb8TMF3 A+iChCc7R7bk2lnFUYi30uGGkOvhy2QsTmknz7rZ8LV4P77vggrdkD7tBtiVfc2OTCgR LU3Vpljw892pMnqHt95FC82UQ8ybh+b/+BN/A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :x-google-sender-auth; b=XXI2UTtph4rRVF/IP34JFQo8PvlaNl5n517/Wt3OfW7rayqygpqUr1ormMizNFdKfX hn/Jmye+A/PDSIu4wAsyTcxoJjwl/EeJpo0ohE6N4YNaSLfVOSeI74kQ972plPlOGiOs RfDjaJ7LJYzZGV79PHiW6iYfCLc32pXslVxY8=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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