Skip to content

Instantly share code, notes, and snippets.

@glujan
glujan / printimp.py
Created January 23, 2018 15:03
Print imported modules during script execution
from __future__ import print_function
import inspect
from functools import wraps
try:
import builtins
except ImportError:
import __builtin__ as builtins

Keybase proof

I hereby claim:

  • I am glujan on github.
  • I am gjjc (https://keybase.io/gjjc) on keybase.
  • I have a public key ASD6vgA2nqpe6rJ7-94pMt_gwNX5l7t0grdXDpLpo8rJ4wo

To claim this, I am signing this object: