Sfoglia il codice sorgente

修复scons --target=vsc 不支持py3的问题

ZYH 6 anni fa
parent
commit
59aee7c462
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)