Commit 207e76cb authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Don't consider directories

parent 8caadfeb
......@@ -215,7 +215,7 @@ def findConfigFile(filename, suffix='.cfg', dirname='configs'):
# config files may be absolute / relative
# paths to an arbitrary location
if op.exists(filename):
if op.isfile(filename):
return op.abspath(filename)
# The user can also refer to "built-in"
......@@ -250,7 +250,7 @@ def findConfigFile(filename, suffix='.cfg', dirname='configs'):
for cfgdir, cand in it.product(cfgdirs, candidates):
cand = op.abspath(op.join(cfgdir, cand))
if op.exists(cand):
if op.isfile(cand):
return cand
# Can't find the file - return the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment