diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-06-24 13:38:11 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-06-30 09:51:31 +0200 |
commit | 8be014ee46077e78db21c5d73058c35a4ee65fa9 (patch) | |
tree | 9bfd0bc11997381d792fd3015add8be9cd7abd70 /components/script/dom/bindings/codegen/run.py | |
parent | 7412e28349237055652a08a2216043d0993a3cea (diff) | |
download | servo-8be014ee46077e78db21c5d73058c35a4ee65fa9.tar.gz servo-8be014ee46077e78db21c5d73058c35a4ee65fa9.zip |
Create a top-level "third_party" directory
This directory now contains third_party software that is vendored into
the Servo source tree. The idea is that it would eventually hold
webrender and other crates from mozilla-central as well with a standard
patch management approach for each.
Diffstat (limited to 'components/script/dom/bindings/codegen/run.py')
-rw-r--r-- | components/script/dom/bindings/codegen/run.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/run.py b/components/script/dom/bindings/codegen/run.py index 4d8d05f0116..a632abc1d9b 100644 --- a/components/script/dom/bindings/codegen/run.py +++ b/components/script/dom/bindings/codegen/run.py @@ -6,14 +6,18 @@ import os import sys import json +SCRIPT_PATH = os.path.abspath(os.path.dirname(__file__)) +SERVO_ROOT = os.path.abspath(os.path.join(SCRIPT_PATH, "..", "..", "..", "..", "..")) + def main(): os.chdir(os.path.join(os.path.dirname(__file__))) - sys.path[0:0] = ["./parser", "./ply"] + sys.path.insert(0, os.path.join(SERVO_ROOT, "third_party", "WebIDL")) + sys.path.insert(0, os.path.join(SERVO_ROOT, "third_party", "ply")) css_properties_json, out_dir = sys.argv[1:] - doc_servo = "../../../../../target/doc/servo" - webidls_dir = "../../webidls" + doc_servo = os.path.join(SERVO_ROOT, "target", "doc", "servo") + webidls_dir = os.path.join(SCRIPT_PATH, "..", "..", "webidls") config_file = "Bindings.conf" import WebIDL |