os Module

Portable interface to operating system dependent features

Includes functions for getting information on files, directories, and file naming

os.getcwd() is useful when GLUT changes the current directory

import os
startDir = os.getcwd() + os.sep

...
    img = Image.open(startDir + filename)
next