# If by "current working directory" you mean # the directory in which is saved the script in execution, then: import os cwd = os.path.dirname(os.path.realpath(__file__)) print(cwd)