Commit f2f8c51a authored by Martin v. Löwis's avatar Martin v. Löwis

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

parent 4f85bf33
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment