How do I get the path of the Python script I am running in?

import os

file_path = os.path.realpath(__file__)