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

Unified Diff: grit/node/structure.py

Issue 1194063002: grit: Add fallback_to_default_layout attribute to <output> (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: for landing Created 5 years, 6 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
« no previous file with comments | « grit/node/misc.py ('k') | grit/tool/build.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/structure.py
diff --git a/grit/node/structure.py b/grit/node/structure.py
index 7ccd2fbcf6c738cb20916b9bc928c20dd1ed77b3..331a646cb5217dd20a879d83e9c5661c3e9a5369 100644
--- a/grit/node/structure.py
+++ b/grit/node/structure.py
@@ -291,7 +291,10 @@ class StructureNode(base.Node):
(not self.attrs['run_command'] or
not self.RunCommandOnCurrentPlatform())):
if return_if_not_generated:
- return self.ToRealPath(self.GetInputPath())
+ input_path = self.GetInputPath()
+ if input_path is None:
+ return None
+ return self.ToRealPath(input_path)
else:
return None
« no previous file with comments | « grit/node/misc.py ('k') | grit/tool/build.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698