import inspec
print inspect.getfile( inspect.currentframe() )

import os
print os.path.abspath( __file__ )
 
import sys
sys._getframe().f_code.co_filename 
Posted by 옥탑방람보
,