def _script_name(self):
        import __main__ as main
        return os.path.abspath(os.path.realpath(main.__file__))
Returns path and filename of executing python program
dataset/ETHPy150Open aelse/cpthook/cpthook.py/CptHook._script_name