Skip to content

Commit

Permalink
using fully resolved path for skipping files
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed May 4, 2017
1 parent a8102a9 commit 0f36e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importanize/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def run(source, config, args, path=None):

elif source.is_file():
if config.get('exclude'):
if any(map(lambda i: fnmatch(six.text_type(source), i),
if any(map(lambda i: fnmatch(six.text_type(source.resolve()), i),
config.get('exclude'))):
log.info('Skipping {}'.format(source))
return
Expand Down

0 comments on commit 0f36e26

Please sign in to comment.