get file of path python file in python script code example Example: get pyhton file path python import os os.path.realpath(__file__)