Skip to content

Commit

Permalink
excludedir doesn't have to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Oct 28, 2015
1 parent 0c6d997 commit 708f8a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/configfile/check_excludepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def check_excludepath(parser, section, path, debug):
if item == '':
continue
else:
if not os.path.isdir(item) and not os.path.isfile(item):
if not item.startswith(path):
print >> sys.stderr, ("Error in section '%s': "
"'excludepath' '%s' doesn't exist"
% (section, item))
"'excludepath' must be inside 'path'"
% section)
excludepath.append(False)
else:
excludepath.append(item)
Expand Down

0 comments on commit 708f8a8

Please sign in to comment.