python how to get path of a folder code example Example: get path to current directory python import os os.path.abspath(os.getcwd())