In IDLE, by default the working directory for the interactive prompt is the working directory for IDLE itself. The working directory for running a module is the directory the module is stored in. In your script, use absolute paths or set the -- Want to play tabletop RPGs over the internet? Check out Koboldsoft RPZen: http://www.koboldsoft.comcwd.