# HG changeset patch # User Sebastien Jodogne # Date 1415017647 -3600 # Node ID 6babe0c7aa2717177ee921c777a27606b832ec0d # Parent 476a17cfdf42d2b41e7faddc77c253a90ca5d9b4 Fix issue #24 (Build fails on OSX when directory has .DS_Store files) diff -r 476a17cfdf42 -r 6babe0c7aa27 Resources/EmbedResources.py --- a/Resources/EmbedResources.py Mon Oct 27 13:45:36 2014 +0100 +++ b/Resources/EmbedResources.py Mon Nov 03 13:27:27 2014 +0100 @@ -86,6 +86,13 @@ content = {} for root, dirs, files in os.walk(pathName): base = os.path.relpath(root, pathName) + + # Fix issue #24 (Build fails on OSX when directory has .DS_Store files): + # Ignore folders whose name starts with a dot (".") + if base.find('/.') != -1: + print('Ignoring folder: %s' % root) + continue + for f in files: if f.find('~') == -1: # Ignore Emacs backup files if base == '.':