aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-13 19:10:13 +0000
committerlloyd <[email protected]>2014-02-13 19:10:13 +0000
commit76bb8ade2fab7c32ee949458f6f5c88d943431eb (patch)
tree5b387120b38084afa3feca6738b0c6e3abb40de4
parentcba6b70f5eccb941b2189ca7ef92d9a6510720f0 (diff)
Ignore editor temp files when looking for sources
-rwxr-xr-xconfigure.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index aee1657c4..269fcbe86 100755
--- a/configure.py
+++ b/configure.py
@@ -144,10 +144,9 @@ class BuildConfigurationInformation(object):
def find_sources_in(basedir, srcdir):
for (dirpath, dirnames, filenames) in os.walk(os.path.join(basedir, srcdir)):
for filename in filenames:
- if filename.endswith('.cpp'):
+ if filename.endswith('.cpp') and not filename.startswith('.'):
yield os.path.join(dirpath, filename)
-
self.app_sources = list(find_sources_in(self.src_dir, 'cmd'))
self.test_sources = list(find_sources_in(self.src_dir, 'tests'))
self.python_sources = list(find_sources_in(self.src_dir, 'python'))