summaryrefslogtreecommitdiffstats
path: root/tools/grit/grit_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/grit/grit_info.py')
-rwxr-xr-xtools/grit/grit_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/grit/grit_info.py b/tools/grit/grit_info.py
index c0e0ed8..675e0aa 100755
--- a/tools/grit/grit_info.py
+++ b/tools/grit/grit_info.py
@@ -66,7 +66,7 @@ def Inputs(filename, defines):
# Add in the grit source files. If one of these change, we want to re-run
# grit.
- grit_root_dir = os.path.dirname(__file__)
+ grit_root_dir = os.path.relpath(os.path.dirname(__file__), os.getcwd())
for root, dirs, filenames in os.walk(grit_root_dir):
grit_src = [os.path.join(root, f) for f in filenames
if f.endswith('.py') or f == 'resource_ids']