Index: mojo/public/bindings/pylib/generate/mojom_generator.py |
diff --git a/mojo/public/bindings/pylib/generate/mojom_generator.py b/mojo/public/bindings/pylib/generate/mojom_generator.py |
index 1148764d635c181e0de0425a675ebef2cc6f0f6e..cf3a84f2a5be48061d2c2ac240d1ae3e5a3c0a62 100644 |
--- a/mojo/public/bindings/pylib/generate/mojom_generator.py |
+++ b/mojo/public/bindings/pylib/generate/mojom_generator.py |
@@ -64,9 +64,9 @@ def ExpressionMapper(expression, mapper): |
class Generator(object): |
# Pass |output_dir| to emit files to disk. Omit |output_dir| to echo all |
# files to stdout. |
- def __init__(self, module, header_dir, output_dir=None): |
+ def __init__(self, module, output_dir=None): |
self.module = module |
- self.header_dir = header_dir |
+ self.header_dir = os.path.dirname(module.path); |
self.output_dir = output_dir |
def GetStructsFromMethods(self): |