浏览代码

Merge pull request #13056 from RoyBerube/master

Visual Studio project creation bug fix

[ci skip]
Rémi Verschelde 8 年之前
父节点
当前提交
a5939c2953
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      drivers/SCsub

+ 5 - 0
drivers/SCsub

@@ -34,7 +34,12 @@ if env['tools']:
     SConscript("convex_decomp/SCsub")
     SConscript("convex_decomp/SCsub")
 
 
 if env['vsproj']:
 if env['vsproj']:
+    import os
+    path = os.getcwd()
+    # Change directory so the path resolves correctly in the function call.
+    os.chdir("..")
     env.AddToVSProject(env.drivers_sources)
     env.AddToVSProject(env.drivers_sources)
+    os.chdir(path)
 
 
 if env.split_drivers:
 if env.split_drivers:
     env.split_lib("drivers")
     env.split_lib("drivers")