Chromium Code Reviews| Index: tools/json_schema_compiler/compiler.py |
| =================================================================== |
| --- tools/json_schema_compiler/compiler.py (revision 182503) |
| +++ tools/json_schema_compiler/compiler.py (working copy) |
| @@ -21,6 +21,7 @@ |
| from dart_generator import DartGenerator |
| from cpp_bundle_generator import CppBundleGenerator |
| from model import Model |
|
not at google - send to devlin
2013/02/16 02:50:02
from model import Mode, UnixName
SanjoyPal
2013/02/19 19:22:02
Done.
|
| +from model import UnixName |
| import idl_schema |
| import json_schema |
| @@ -110,7 +111,7 @@ |
| referenced_schema = split_schema[1] |
| referenced_schema_path = os.path.join( |
| - os.path.dirname(schema), referenced_schema + '.json') |
| + os.path.dirname(schema), UnixName(referenced_schema) + '.json') |
|
not at google - send to devlin
2013/02/16 02:50:02
cleanup: '%s.json' % UnixName(referenced_schema)
SanjoyPal
2013/02/19 19:22:02
Done.
|
| referenced_api_defs = json_schema.Load(referenced_schema_path) |
| for namespace in referenced_api_defs: |