Browse Source

Merge pull request #13056 from RoyBerube/master

Visual Studio project creation bug fix

[ci skip]
Rémi Verschelde 8 years ago
parent
commit
a5939c2953
1 changed files with 5 additions and 0 deletions
  1. 5 0
      drivers/SCsub

+ 5 - 0
drivers/SCsub

@@ -34,7 +34,12 @@ if env['tools']:
     SConscript("convex_decomp/SCsub")
 
 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)
+    os.chdir(path)
 
 if env.split_drivers:
     env.split_lib("drivers")