python how to get path of the current file code example Example: get pyhton file path python import os os.path.realpath(__file__)