Guest User

Untitled

a guest
May 2nd, 2021
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2. if globals().has_key('init_modules'):
  3.     for m in sys.modules.keys():
  4.         if m not in init_modules:
  5.             del(sys.modules[m])
  6. else:
  7.     init_modules = sys.modules.keys()
RAW Paste Data