| Index: tools/json_schema_compiler/compiler.py
|
| diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py
|
| index ddab77eadd76a278dccd3778ec32009ee79dea32..18a7e243e0c49ac1d370462c4ef0441fbf50e1b2 100755
|
| --- a/tools/json_schema_compiler/compiler.py
|
| +++ b/tools/json_schema_compiler/compiler.py
|
| @@ -38,7 +38,7 @@ def GenerateSchema(generator,
|
| destdir,
|
| root_namespace,
|
| dart_overrides_dir):
|
| - schema_loader = SchemaLoader(os.path.dirname(os.path.relpath(
|
| + schema_loader = SchemaLoader(root, os.path.dirname(os.path.relpath(
|
| os.path.normpath(filenames[0]), root)))
|
| # Merge the source files into a single list of schemas.
|
| api_defs = []
|
| @@ -46,7 +46,7 @@ def GenerateSchema(generator,
|
| schema = os.path.normpath(filename)
|
| schema_filename, schema_extension = os.path.splitext(schema)
|
| path, short_filename = os.path.split(schema_filename)
|
| - api_def = schema_loader.LoadSchema(schema)
|
| + api_def = schema_loader.LoadSchema(short_filename + schema_extension)
|
|
|
| # If compiling the C++ model code, delete 'nocompile' nodes.
|
| if generator == 'cpp':
|
|
|