Last active
November 12, 2021 15:27
-
-
Save sprout42/eaf96e3b0c26458688160d9e76b03cd2 to your computer and use it in GitHub Desktop.
import fun with python!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import builtins | |
_old_import = builtins.__import__ | |
def _test_import(*args, **kwargs): | |
print('yo!', args, kwargs) | |
return _old_import(*args, **kwargs) | |
builtins.__import__ = _test_import | |
import os | |
print('done') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment