summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/project.py b/project.py
index edd748d0..338feffa 100644
--- a/project.py
+++ b/project.py
@@ -2548,6 +2548,11 @@ class Project(object):
2548 hooks = platform_utils.realpath(os.path.join(self.objdir, 'hooks')) 2548 hooks = platform_utils.realpath(os.path.join(self.objdir, 'hooks'))
2549 if not os.path.exists(hooks): 2549 if not os.path.exists(hooks):
2550 os.makedirs(hooks) 2550 os.makedirs(hooks)
2551
2552 # Delete sample hooks. They're noise.
2553 for hook in glob.glob(os.path.join(hooks, '*.sample')):
2554 platform_utils.remove(hook, missing_ok=True)
2555
2551 for stock_hook in _ProjectHooks(): 2556 for stock_hook in _ProjectHooks():
2552 name = os.path.basename(stock_hook) 2557 name = os.path.basename(stock_hook)
2553 2558