python how to find python directory code example Example: get diroctary in python import os cwd = os.getcwd() print(cwd)