Index: tools/json_schema_compiler/compiler.py |
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py |
index 1a32cbc2c2134c393cb93d6761b859affdb1fa8a..2d39270216d87e4b7a6358f762e9d1b9eb281862 100755 |
--- a/tools/json_schema_compiler/compiler.py |
+++ b/tools/json_schema_compiler/compiler.py |
@@ -51,7 +51,7 @@ def GenerateSchema(generator_name, |
os.path.dirname(file_path), |
include_rules, |
cpp_namespace_pattern) |
- api_def = schema_loader.LoadSchema(os.path.split(schema)[1]) |
+ api_def = schema_loader.LoadSchema(schema) |
# If compiling the C++ model code, delete 'nocompile' nodes. |
if generator_name == 'cpp': |