aboutsummaryrefslogtreecommitdiff
path: root/ports/openxr-loader/0003-windows-path-python-fix.patch
diff options
context:
space:
mode:
authorNicole Mazzuca <t-nimaz@microsoft.com>2019-07-19 12:17:22 -0700
committerNicole Mazzuca <t-nimaz@microsoft.com>2019-07-19 12:17:22 -0700
commitb3caf67749f21952e0157ba77ece755aa01b254a (patch)
treedff6a178b506fdc58e28bbc9094f1687eb99bd72 /ports/openxr-loader/0003-windows-path-python-fix.patch
parentfddebb75da034752fb267ba121497ba58157bb79 (diff)
parent618fa203c13c30bd19826988cff66481bca0562f (diff)
downloadvcpkg-b3caf67749f21952e0157ba77ece755aa01b254a.tar.gz
vcpkg-b3caf67749f21952e0157ba77ece755aa01b254a.zip
Merge branch 'trunk' into parallel-file-ops
Diffstat (limited to 'ports/openxr-loader/0003-windows-path-python-fix.patch')
-rw-r--r--ports/openxr-loader/0003-windows-path-python-fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/openxr-loader/0003-windows-path-python-fix.patch b/ports/openxr-loader/0003-windows-path-python-fix.patch
new file mode 100644
index 000000000..a68f87722
--- /dev/null
+++ b/ports/openxr-loader/0003-windows-path-python-fix.patch
@@ -0,0 +1,16 @@
+diff --git a/specification/scripts/generator.py b/specification/scripts/generator.py
+index d6a1afe..5f9d0b6 100644
+--- a/specification/scripts/generator.py
++++ b/specification/scripts/generator.py
+@@ -516,9 +516,10 @@ class OutputGenerator:
+ # Generator can be used without writing to a file.
+ if self.genOpts.filename is not None:
+ if sys.platform == 'win32':
+- directory = Path(self.genOpts.directory)
++ directory = self.genOpts.directory
+ if not os.path.exists(directory):
+ os.makedirs(directory)
+- self.outFile = io.open(directory / self.genOpts.filename, 'w', encoding='utf-8')
++ self.outFile = io.open(directory + '/' + self.genOpts.filename, 'w', encoding='utf-8')
+ else:
+ filename = self.genOpts.directory + '/' + self.genOpts.filename