mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[Tools] Change building script for Py3
This commit is contained in:
+6
-6
@@ -66,19 +66,19 @@ Return('objs')
|
||||
'''
|
||||
|
||||
def usage():
|
||||
print 'wizard --component name'
|
||||
print 'wizard --bridge'
|
||||
print('wizard --component name')
|
||||
print('wizard --bridge')
|
||||
|
||||
def gen_component(name):
|
||||
print 'generate SConscript for ' + name
|
||||
print('generate SConscript for ' + name)
|
||||
text = SConscript_com.replace('COMPONENT_NAME', name)
|
||||
f = file('SConscript', 'w')
|
||||
f = open('SConscript', 'w')
|
||||
f.write(text)
|
||||
f.close()
|
||||
|
||||
def gen_bridge():
|
||||
print 'generate SConscript for bridge'
|
||||
f = file('SConscript', 'w')
|
||||
print('generate SConscript for bridge')
|
||||
f = open('SConscript', 'w')
|
||||
f.write(SConscript_bridge)
|
||||
f.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user