Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2f8c51

Browse files
committed
When representing #includes as imports, do from MOD import *.
1 parent 4f85bf3 commit f2f8c51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/scripts/h2py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def process(fp, outfp, env = {}):
135135
a, b = regs[1]
136136
filename = line[a:b]
137137
if importable.has_key(filename):
138-
outfp.write('import %s\n' % importable[filename])
138+
outfp.write('from %s import *\n' % importable[filename])
139139
elif not filedict.has_key(filename):
140140
filedict[filename] = None
141141
inclfp = None

0 commit comments

Comments
 (0)