summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-08-01 07:33:58 +0000
committer[email protected] <[email protected]>2012-08-01 07:33:58 +0000
commitf6df9adbb246d7397c0241edf9e22eca67b233e5 (patch)
tree57334bda20624019032dbb7340975b885eadc838 /tools
parent27f90145b3bd5cb6634e60fbac735ee4220c361e (diff)
fix the win32 path issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2244 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'tools')
-rw-r--r--tools/building.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py
index b612947615..782c99b031 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -48,6 +48,8 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
win32_spawn = Win32Spawn()
win32_spawn.env = env
env['SPAWN'] = win32_spawn.spawn
+
+ if env['PLATFORM'] == 'win32':
os.environ['PATH'] = rtconfig.EXEC_PATH + ";" + os.environ['PATH']
else:
os.environ['PATH'] = rtconfig.EXEC_PATH + ":" + os.environ['PATH']