From f2f8c51ae6b409fc619f66c8b42689dbc221daf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 9 Aug 2001 12:32:10 +0000 Subject: When representing #includes as imports, do from MOD import *. --- Tools/scripts/h2py.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 4e81c86..689dc66 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -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 -- cgit v0.12