How to test if a module has been imported in python?
for example I need the basics:
if not has_imported(\"sys\"): import sys
als
from sys import modules try: module = modules[module_name] except KeyError: __import__('m')
this is my solution of changing code at runtime!