Skip to content

Commit

Permalink
When finding real paths ignore directories
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
evanpurkhiser committed Mar 18, 2014
1 parent 3c532bf commit e5464f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dots
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class ConfigFile(object):
paths[i] = path + OVERRIDE_EXT
paths = paths[i:]

return [p for p in paths if os.path.exists(p)]
return [p for p in paths if os.path.isfile(p)]

def mode(self):
"""Determine the mode of this file. If the file has multiple overriding
Expand Down

0 comments on commit e5464f8

Please sign in to comment.