Revision: 17820
Author: [email protected]
Date: Mon Nov 18 10:09:57 2013 UTC
Log: Experimental lexer generator: fix build after jinja2 came along.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/75153003
http://code.google.com/p/v8/source/detail?r=17820
Modified:
/branches/experimental/parser/tools/lexer_generator/code_generator.py
=======================================
--- /branches/experimental/parser/tools/lexer_generator/code_generator.py
Mon Nov 18 07:52:02 2013 UTC
+++ /branches/experimental/parser/tools/lexer_generator/code_generator.py
Mon Nov 18 10:09:57 2013 UTC
@@ -27,6 +27,8 @@
from dfa import Dfa
import jinja2
+import os
+import sys
class CodeGenerator:
@@ -50,6 +52,7 @@
assert(default_action and default_action.match_action())
default_action = default_action.match_action()
+
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
template_env = jinja2.Environment(
loader = jinja2.PackageLoader('lexer_generator', '.'),
undefined = jinja2.StrictUndefined)
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.