[menuconfig] Fix pyconfig running errors

This commit is contained in:
tyx 2022-09-27 08:51:15 +08:00 committed by guo
parent ee57f2d0da
commit 64a6297840
1 changed files with 6 additions and 6 deletions

View File

@ -249,8 +249,8 @@ def menuconfig(RTT_ROOT):
touch_env()
env_dir = get_env_dir()
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
if isinstance(env_dir, str):
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
fn = '.config'
fn_old = '.config.old'
@ -282,8 +282,8 @@ def guiconfig(RTT_ROOT):
touch_env()
env_dir = get_env_dir()
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
if isinstance(env_dir, str):
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
fn = '.config'
fn_old = '.config.old'
@ -316,8 +316,8 @@ def guiconfig_silent(RTT_ROOT):
touch_env()
env_dir = get_env_dir()
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
if isinstance(env_dir, str):
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
fn = '.config'