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