4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 02:53:32 +08:00

还原脚本文件

This commit is contained in:
xx 2018-03-29 15:40:10 +08:00
parent d98c4ad116
commit 4e077447f9

View File

@ -3,10 +3,10 @@ import sys
import rtconfig
#if os.getenv('RTT_ROOT'):
# RTT_ROOT = os.getenv('RTT_ROOT')
#else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *