When representing #includes as imports, do from MOD import *.
This commit is contained in:
parent
4f85bf3311
commit
f2f8c51ae6
|
@ -135,7 +135,7 @@ def process(fp, outfp, env = {}):
|
|||
a, b = regs[1]
|
||||
filename = line[a:b]
|
||||
if importable.has_key(filename):
|
||||
outfp.write('import %s\n' % importable[filename])
|
||||
outfp.write('from %s import *\n' % importable[filename])
|
||||
elif not filedict.has_key(filename):
|
||||
filedict[filename] = None
|
||||
inclfp = None
|
||||
|
|
Loading…
Reference in New Issue