diff --git a/EnginePatches/BuildConfigurationLinux.xml b/EnginePatches/BuildConfigurationLinux.xml
index e69de29b..902e700b 100644
--- a/EnginePatches/BuildConfigurationLinux.xml
+++ b/EnginePatches/BuildConfigurationLinux.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ VisualStudioCode
+
+
+ true
+ true
+
+
diff --git a/patch-integration.py b/patch-integration.py
index dfcef528..40a0610d 100755
--- a/patch-integration.py
+++ b/patch-integration.py
@@ -66,6 +66,10 @@ from pathlib import Path
# Some handy utility functions
#
+def readfile(fn):
+ with open(fn) as f:
+ return f.read()
+
def writefile(fn, str):
with open(fn, "w") as f:
f.write(str)
@@ -97,18 +101,8 @@ Path("Source/Integration/lpx-paths.hpp").unlink(missing_ok=True)
# Write BuildConfiguration.xml
#
-writefile("Saved/UnrealBuildTool/BuildConfiguration.xml",
-f"""
-
-
- VisualStudioCode
-
-
- true
- true
-
-
-""")
+BUILDCONFIG=readfile("EnginePatches/BuildConfigurationLinux.xml")
+writefile("Saved/UnrealBuildTool/BuildConfiguration.xml", BUILDCONFIG)
#
# Write lpx-paths.hpp.
diff --git a/patch-unrealengine.py b/patch-unrealengine.py
index f195b01f..eea99896 100755
--- a/patch-unrealengine.py
+++ b/patch-unrealengine.py
@@ -63,6 +63,6 @@ writefile("Engine/Saved/UnrealBuildTool/BuildConfiguration.xml", BUILDCONFIG)
#
LOGMACROS=readfile(f"{INTEGRATION}/EnginePatches/LogMacros.cpp")
-writefile(f"{UNREALENGINE}/Engine/Source/Runtime/Core/Private/Logging/LogMacros.cpp"), LOGMACROS)
+writefile(f"{UNREALENGINE}/Engine/Source/Runtime/Core/Private/Logging/LogMacros.cpp", LOGMACROS)