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

Unified Diff: grit/node/include.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/gather/chrome_scaled_image_unittest.py ('k') | grit/node/io.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/include.py
diff --git a/grit/node/include.py b/grit/node/include.py
index 8d32064095ce885061dd3d3ca9b28680c3afd949..ebcd53108f503005dadae9ae67b192245fb0a66d 100644
--- a/grit/node/include.py
+++ b/grit/node/include.py
@@ -68,7 +68,11 @@ class IncludeNode(base.Node):
"""Returns the file for the specified language. This allows us to return
different files for different language variants of the include file.
"""
- return self.ToRealPath(self.GetInputPath())
+ input_path = self.GetInputPath()
+ if input_path is None:
+ return None
+
+ return self.ToRealPath(input_path)
def GetDataPackPair(self, lang, encoding):
"""Returns a (id, string) pair that represents the resource id and raw
« no previous file with comments | « grit/gather/chrome_scaled_image_unittest.py ('k') | grit/node/io.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698