Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import * with __import__

m = __import__ (S)
try:
    attrlist = m.__all__
except AttributeError:
    attrlist = dir (m)
for attr in attrlist:
    globals()[attr] = getattr (m, attr)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import
ADD COMMENT
Topic
Name
7+9 =