mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 13:13:31 +08:00
fix menuconfig.py
This commit is contained in:
parent
0dae909f66
commit
c20bff531a
@ -23,6 +23,7 @@
|
||||
# 2018-07-31 weety Support pyconfig
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import shutil
|
||||
|
||||
@ -75,7 +76,7 @@ def mk_rtconfig(filename):
|
||||
if setting[1] == 'y':
|
||||
rtconfig.write('#define %s\n' % setting[0])
|
||||
else:
|
||||
rtconfig.write('#define %s %s\n' % (setting[0], setting[1]))
|
||||
rtconfig.write('#define %s %s\n' % (setting[0], re.findall(r"^.*?=(.*)$",line)[0]))
|
||||
|
||||
if os.path.isfile('rtconfig_project.h'):
|
||||
rtconfig.write('#include "rtconfig_project.h"\n')
|
||||
|
Loading…
x
Reference in New Issue
Block a user