summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZYH <[email protected]>2018-11-11 17:48:08 +0800
committerZYH <[email protected]>2018-11-11 21:54:25 +0800
commit59aee7c462e08b4f5306c11d099a04f900228df9 (patch)
tree950e901c4c1b7c65a0d9e9fab07ed6af9c6b4419
parentcb1af3616df2e41e09787bec7a5800aa3b6fc52c (diff)
修复scons --target=vsc 不支持py3的问题
-rw-r--r--tools/vsc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vsc.py b/tools/vsc.py
index 8067276ee6..6a978c1e39 100644
--- a/tools/vsc.py
+++ b/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)