summaryrefslogtreecommitdiffstats
path: root/tools/idl_parser
diff options
context:
space:
mode:
authornbarth@chromium.org <nbarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-23 16:30:13 +0000
committernbarth@chromium.org <nbarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-23 16:30:13 +0000
commitafca5d2ed825cc13581396ad18b117631cd00f9e (patch)
treee975c376fb8fd74821416b62878554463b3bd330 /tools/idl_parser
parent2f1b22af066151cd4b85475f567090e60247cd5d (diff)
downloadchromium_src-afca5d2ed825cc13581396ad18b117631cd00f9e.zip
chromium_src-afca5d2ed825cc13581396ad18b117631cd00f9e.tar.gz
chromium_src-afca5d2ed825cc13581396ad18b117631cd00f9e.tar.bz2
Add __init__.py file to Web IDL parser
This (empty) file makes the idl_parser directory into a Python package, natch. This makes importing the modules easier, since I'm trying out deriving the parser (hence I don't need to have a separate branch for Chromium just to track this file). FWIW, I'm currently importing the lexer by backing up to the Chromium directory and then including "tools" in the path; is this correct, or is there a cleaner way of doing it? Thanks! # Base lexer is in Chromium src/tools/idl_parser module_path, module_name = os.path.split(__file__) tools_dir = os.path.join(module_path, '..', '..', '..', '..', '..', 'tools') sys.path.append(tools_dir) from idl_parser.idl_lexer import IDLLexer Review URL: https://chromiumcodereview.appspot.com/15659004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/idl_parser')
-rw-r--r--tools/idl_parser/__init__.py0
1 files changed, 0 insertions, 0 deletions
diff --git a/tools/idl_parser/__init__.py b/tools/idl_parser/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tools/idl_parser/__init__.py