浏览代码

Merge pull request #1969 from uestczyh222/master

修复scons --target=vsc 不支持py3的问题
Bernard Xiong 6 年之前
父节点
当前提交
302d00ec76
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/vsc.py

+ 1 - 1
tools/vsc.py

@@ -37,7 +37,7 @@ def GenerateCFiles(env):
     if not os.path.exists('.vscode'):
         os.mkdir('.vscode')
 
-    vsc_file = file('.vscode/c_cpp_properties.json', 'wb')
+    vsc_file = open('.vscode/c_cpp_properties.json', 'w')
     if vsc_file:
         info = utils.ProjectInfo(env)