Index: mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
diff --git a/mojo/public/bindings/pylib/parse/mojo_lexer.py b/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
similarity index 97% |
rename from mojo/public/bindings/pylib/parse/mojo_lexer.py |
rename to mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
index 16f84b64c58dc755303b85869d4bcc70ef55b2f6..8cd7a1f733c90d98c9f97254e9f8f1b214a0a492 100644 |
--- a/mojo/public/bindings/pylib/parse/mojo_lexer.py |
+++ b/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py |
@@ -13,9 +13,10 @@ try: |
# pylint: disable=F0401 |
from ply.lex import TOKEN |
except ImportError: |
+ # This assumes this file is in src/mojo/public/tools/bindings/pylib/parse/. |
module_path, module_name = os.path.split(__file__) |
third_party = os.path.join(module_path, os.pardir, os.pardir, os.pardir, |
- os.pardir, os.pardir, 'third_party') |
+ os.pardir, os.pardir, os.pardir, 'third_party') |
sys.path.append(third_party) |
# pylint: disable=F0401 |
from ply.lex import TOKEN |