Fix bugs for processing command line parameters

This commit is contained in:
shinu 2022-04-23 00:17:01 +08:00 committed by guo
parent 5e8871e1a2
commit 778be73cac
1 changed files with 6 additions and 5 deletions

View File

@ -30,6 +30,7 @@ import string
import utils
import operator
import rtconfig
import platform
from SCons.Script import *
from utils import _make_path_relative
@ -297,11 +298,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
from WCS import ThreadStackStaticAnalysis
ThreadStackStaticAnalysis(Env)
exit(0)
if GetOption('menuconfig'):
from menuconfig import menuconfig
menuconfig(Rtt_Root)
exit(0)
if platform.system() != 'Windows':
if GetOption('menuconfig'):
from menuconfig import menuconfig
menuconfig(Rtt_Root)
exit(0)
if GetOption('pyconfig_silent'):
from menuconfig import guiconfig_silent