views:

30

answers:

1

Using PIL in python one must put the full directory for an image, so that the program runs properly. Is there any way to make that directory variable? So that it gets the programs current directory then looks for the images in that same folder?

This is in Windows 7 BTW.

+1  A: 

You are looking for: os.getcwd

John