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