summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-11-19 22:16:17 +0100
committerGitHub <noreply@github.com>2017-11-19 22:16:17 +0100
commita5939c2953d63178451d9643650d88d5a2fcf0f2 (patch)
tree02e06aed2422d50384a1ee736333405f5292c914
parentd2bc9613887d9ad02f5c3f95ebd65714fe5c4aee (diff)
parent4d5a87a4225782cef357b9814fd47e4a26653e34 (diff)
Merge pull request #13056 from RoyBerube/master
Visual Studio project creation bug fix [ci skip]
-rw-r--r--drivers/SCsub5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/SCsub b/drivers/SCsub
index 34d6254578..938927f3a9 100644
--- a/drivers/SCsub
+++ b/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")