how to get the current working path in python code example Example: get path to current directory python import os os.path.abspath(os.getcwd())