If you use 'from os import *' then you shouldn't preface the commands with os. So, two options: from os import * print "Working Path: %s" % getcwd() OR import os print "Working Path: %s" % os.getcwd() One of these two ways you're not supposed to use for security reasons, but I'm spacing on which one.