i need help to get the name of the not imported module while doing that
so the code is:
#!/usr/bin/env python
bla=[]
try:
import os
import sys
import somethings
import blabla
except:
bla.append(NOT_IMPORTED_MODULE_NAME) # it should be here
if len(bla)>0:
exit("not imported:%s" % " ".join(bla))
thank you in advance