提交 cbfe1d64 编写于 作者: qiuyiuestc's avatar qiuyiuestc

fix module compile error when RTT_ROOT variable not to be set

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1738 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 02c43b16
......@@ -6,7 +6,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册