summaryrefslogtreecommitdiff
path: root/pylib/gyp/input.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylib/gyp/input.py')
-rw-r--r--pylib/gyp/input.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pylib/gyp/input.py b/pylib/gyp/input.py
index 9bc449d4..6472912d 100644
--- a/pylib/gyp/input.py
+++ b/pylib/gyp/input.py
@@ -822,8 +822,7 @@ def ExpandVariables(input, phase, variables, build_file):
rel_build_file_dir = build_file_dir
qualified_out_dir = generator_filelist_paths['qualified_out_dir']
path = os.path.join(qualified_out_dir, rel_build_file_dir, replacement)
- if not os.path.isdir(os.path.dirname(path)):
- os.makedirs(os.path.dirname(path))
+ gyp.common.EnsureDirExists(path)
replacement = gyp.common.RelativePath(path, build_file_dir)
f = gyp.common.WriteOnDiff(path)