瀏覽代碼

[BSP] [ci skip] fix list issue in SConscript

Bernard Xiong 11 年之前
父節點
當前提交
28246abb5a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      bsp/xplorer4330/m4/SConscript

+ 2 - 2
bsp/xplorer4330/m4/SConscript

@@ -2,11 +2,11 @@ from building import *
 
 cwd  = GetCurrentDir()
 objs = []
-list = os.listdir(cwd+'\\..')
+list = os.listdir(os.path.join(cwd, '..'))
 
 for d in list:
     if d!='m4':
-        path = os.path.join(cwd+'\\..', d)
+        path = os.path.join(cwd, '..', d)
         if os.path.isfile(os.path.join(path, 'SConscript')):
             objs = objs + SConscript(os.path.join(path, 'SConscript'))