[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] image-loading path
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] image-loading path
- From: "Forrest Voight" <voights@xxxxxxxxx>
- Date: Mon, 14 Jul 2008 12:07:57 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 14 Jul 2008 12:08:02 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Kyit2pDuoExrYdyF94UR+BlFk6J2FRal3eF6DTfH2qc=; b=D7TDz7w6/FM3c6y+OjLISm11j/8pB7fQfcor5N+S4rwPwZYgr/Y9kVVg3YjaH9fdC8 1PlXlghwrvCSqn6Gj61A4nVXuW16TWHyGeZ6jZBx5pBGiw2/IqTcSeRI0TU3o2rys0ow 6fuhVpu5oGVsE/GxzoUqPIoZEa7l/Tka5x7CI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=hf+hhXnejZN0ErNcm4XyZ9LBqgsHUtang/mNJc+SbaRl9uBsixIYVUyUn61nY2OWty 4HphmsViN8a1WIvy4x9fHQbIQ3lkzXd1GCnC0veqzwGuZ1IHqMBjsuKIlKu/QRZE9B99 TyvjjYdMgumiJbP8N9HCLKxnce1kyH6SUxt8A=
- In-reply-to: <20b9eb590807140843r290b9335r8708dbfa3d86d90d@xxxxxxxxxxxxxx>
- References: <20b9eb590807140843r290b9335r8708dbfa3d86d90d@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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
>