mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-27 23:47:05 +08:00
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
This commit is contained in:
parent
02c43b16b0
commit
cbfe1d64de
@ -6,7 +6,7 @@ import rtconfig
|
|||||||
if os.getenv('RTT_ROOT'):
|
if os.getenv('RTT_ROOT'):
|
||||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||||
else:
|
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')]
|
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
from building import *
|
from building import *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user