From 515afe965636c370793707776dffd62ec0e485b1 Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Thu, 29 Jan 2015 15:24:55 -0800 Subject: [PATCH] Prevent the build from copying hidden files --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 3058897..0f202ef 100644 --- a/SConstruct +++ b/SConstruct @@ -120,7 +120,10 @@ def CopyTree(dst, src, env): for f in os.listdir(src): srcPath = os.path.join(src, f) dstPath = os.path.join(dst, f) - if os.path.isdir(srcPath): + if f.startswith("."): + # Ignore hidden files + pass + elif os.path.isdir(srcPath): if not os.path.exists(dstPath): os.makedirs(dstPath) DirCopyHelper(srcPath, dstPath)