When representing #includes as imports, do from MOD import *.

This commit is contained in:
Martin v. Löwis 2001-08-09 12:32:10 +00:00
parent 4f85bf3311
commit f2f8c51ae6
1 changed files with 1 additions and 1 deletions

View File

@ -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