Index: components/wug/generator/gen_sources.py |
diff --git a/components/wug/generator/gen_sources.py b/components/wug/generator/gen_sources.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1068ff349087b79d54d83cd974c6b3f087977af2 |
--- /dev/null |
+++ b/components/wug/generator/gen_sources.py |
@@ -0,0 +1,22 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import os |
+import os.path |
+ |
+from declaration import Declaration |
+import export_h |
+import view_model |
+import web_ui_view |
+import util |
+ |
+args = util.CreateArgumentParser().parse_args() |
+declaration_path = os.path.relpath(args.declaration, args.root) |
+destination = os.path.relpath(args.destination, args.root) |
+os.chdir(args.root) |
+declaration = Declaration(declaration_path) |
Nikita (slow)
2015/02/25 18:21:59
Add file name to exception message.
dzhioev (left Google)
2015/02/26 14:01:39
Done.
|
+view_model.Gen(declaration, destination) |
+web_ui_view.Gen(declaration, destination) |
+export_h.Gen(declaration, destination) |
+ |