4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 12:53:31 +08:00

Merge pull request #2919 from armink/fix_pyconfig

[tools] Fix pyconfig issue on windows.
This commit is contained in:
Bernard Xiong 2019-08-05 08:34:10 +08:00 committed by GitHub
commit 515d38ffbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,9 @@ def menuconfig(RTT_ROOT):
def guiconfig(RTT_ROOT):
import pyguiconfig
touch_env()
if sys.platform != 'win32':
touch_env()
env_dir = get_env_dir()
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')
@ -259,7 +261,9 @@ def guiconfig(RTT_ROOT):
def guiconfig_silent(RTT_ROOT):
import defconfig
touch_env()
if sys.platform != 'win32':
touch_env()
env_dir = get_env_dir()
os.environ['PKGS_ROOT'] = os.path.join(env_dir, 'packages')