aboutsummaryrefslogtreecommitdiff
path: root/ports/openxr-loader/0001-fix-embedded-python-path.patch
diff options
context:
space:
mode:
authorBradley Austin Davis <bdavis@saintandreas.org>2019-07-15 14:42:45 -0700
committerVictor Romero <romerosanchezv@gmail.com>2019-07-15 14:42:44 -0700
commit0c8139dbe8ef08ddf38c7f38e094c3cbc4c8bce9 (patch)
tree99910a893fda43db0d9b88afe976c55eddcd47bb /ports/openxr-loader/0001-fix-embedded-python-path.patch
parent40200c829a7a4636ce75ae355dd47d2e458bca75 (diff)
downloadvcpkg-0c8139dbe8ef08ddf38c7f38e094c3cbc4c8bce9.tar.gz
vcpkg-0c8139dbe8ef08ddf38c7f38e094c3cbc4c8bce9.zip
[openxr-loader] Initial port (#6339)
* [openxr] add initial port * [openxr-loader] Set executable suffix * [openxr-loader] Use correct checks for Windows * [openxr-loader] Add failure messages for unsupported platforms
Diffstat (limited to 'ports/openxr-loader/0001-fix-embedded-python-path.patch')
-rw-r--r--ports/openxr-loader/0001-fix-embedded-python-path.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/ports/openxr-loader/0001-fix-embedded-python-path.patch b/ports/openxr-loader/0001-fix-embedded-python-path.patch
new file mode 100644
index 000000000..3fe7e61e8
--- /dev/null
+++ b/ports/openxr-loader/0001-fix-embedded-python-path.patch
@@ -0,0 +1,35 @@
+diff --git a/specification/scripts/genxr.py b/specification/scripts/genxr.py
+index 906c044..b0a414f 100755
+--- a/specification/scripts/genxr.py
++++ b/specification/scripts/genxr.py
+@@ -17,6 +17,12 @@
+ import argparse
+ import re
+ import sys
++import os
++
++base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
++sys.path.append(os.path.join(base_dir, 'src', 'scripts'))
++sys.path.append(os.path.join(base_dir, 'specification', 'scripts'))
++
+ import time
+ import xml.etree.ElementTree as etree
+
+diff --git a/src/scripts/src_genxr.py b/src/scripts/src_genxr.py
+index 960b6cd..6f49296 100755
+--- a/src/scripts/src_genxr.py
++++ b/src/scripts/src_genxr.py
+@@ -14,7 +14,12 @@
+ # See the License for the specific language governing permissions and
+ # limitations under the License.
+
+-import argparse, cProfile, pdb, string, sys, time
++import argparse, cProfile, pdb, string, sys, time, os
++
++base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
++sys.path.append(os.path.join(base_dir, 'src', 'scripts'))
++sys.path.append(os.path.join(base_dir, 'specification', 'scripts'))
++
+ from reg import *
+ from generator import write
+ from cgenerator import CGeneratorOptions, COutputGenerator