On Sat, Mar 6, 2010 at 5:12 PM, Alejandro Castellanos <
[email protected]> wrote:

> Hm? You'll have to translate that for me.
>
> I guess I'll show my newbness, but I didn't quite understand that.
>

At the IDLE prompt you can run *os.getcwd()*, to display the current working
directory.

If the result isn't the directory containing your kitten.jpg file, then you
need to change to that directory with *os.chdir('path/to/directory')*.

Alternately, you can launch IDLE from the command prompt, having first cd'd
to the directory with your jpeg in it.

On 6 mar, 13:43, Richard Jones <[email protected]> wrote:
> > On Sun, Mar 7, 2010 at 5:01 AM, Alejandro Castellanos
> >
> > <[email protected]> wrote:
> > > The image file is in the exact same directory (no need to specify a
> > > file path). That's why it is so bizarre.
> >
> > > As I've said before, I've done weirder things and they all work (a
> > > fake layer engine using sprites, for example), but for some reason
> > > this basic one doesn't. I have to be literally clicking on the icon to
> > > get it to work 'cause IDLE won't run it (pressing F5).
> >
> > IDLE's current working directory probably isn't set to your program's
> directory.
> >
> >       Richard
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pyglet-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.
>
>


-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to