Mercurial > hg > orthanc
changeset 1204:6babe0c7aa27
Fix issue #24 (Build fails on OSX when directory has .DS_Store files)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Nov 2014 13:27:27 +0100 |
parents | 476a17cfdf42 |
children | bb1ad2fbf914 |
files | Resources/EmbedResources.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 == '.':