how to print the path to a file or folder in python code example Example: find the path to a file python import os print os.path.abspath("something.exe")