Index: tools/json_schema_compiler/compiler.py |
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py |
index 7a2e4dd6f1593ed3a4ae95b03631d3a483ffd5c0..14d3a872756839cf6b2fca5484b2714c17ab8c38 100755 |
--- a/tools/json_schema_compiler/compiler.py |
+++ b/tools/json_schema_compiler/compiler.py |
@@ -85,7 +85,7 @@ def GenerateSchema(generator_name, |
else: |
src_path = os.path.commonprefix((src_path, namespace.source_file_dir)) |
- path, filename = os.path.split(file_path) |
+ filename = os.path.split(file_path)[1] |
not at google - send to devlin
2015/01/14 22:44:41
maybe change it to
_, filename = ...
then? I pre
not at google - send to devlin
2015/01/14 23:06:59
no idea. I just like to be explicit when something
|
filename_base, _ = os.path.splitext(filename) |
# Construct the type generator with all the namespaces in this model. |
@@ -123,7 +123,7 @@ def GenerateSchema(generator_name, |
dart_overrides_dir)) |
] |
else: |
- raise Exception('Unrecognised generator %s' % generator) |
+ raise Exception('Unrecognised generator %s' % generator_name) |
output_code = [] |
for filename, generator in generators: |