python file directory where code is code example Example: which folder python os import os cwd = os.getcwd()