From anonymous, 1 Month ago, written in Python.
Embed
  1. # x.py
  2.  
  3. import pr
  4.  
  5. def func():
  6.     print("Hello World")
  7.  
  8. pr.start()
  9.  
  10. # pr.py
  11.  
  12. import sys
  13.  
  14. def start():
  15.     func = sys._getframe().f_back.f_globals['func']
  16.     func()