Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: tools/json_schema_compiler/schema_loader.py

Issue 197873009: Support scoped types in PPAPI IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compiling. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/schema_loader.py
diff --git a/tools/json_schema_compiler/schema_loader.py b/tools/json_schema_compiler/schema_loader.py
index 9fea1ab8250229a47172e7a18dabd26968ee6166..bc5e15e8f1ac0a7a6d046821a68fe92c04dd62cb 100644
--- a/tools/json_schema_compiler/schema_loader.py
+++ b/tools/json_schema_compiler/schema_loader.py
@@ -31,7 +31,7 @@ class SchemaLoader(object):
namespace_name, type_name = name_parts
real_name = None
for ext in ['json', 'idl']:
- filename = '%s.%s' % (namespace_name, ext)
+ filename = '%s.%s' % (namespace_name.replace('.', '_'), ext)
filepath = os.path.join(self._real_path, filename);
if os.path.exists(filepath):
real_name = filename

Powered by Google App Engine
This is Rietveld 408576698