Let Node.find_or_declare accept paths as lists

This commit is contained in:
Thomas Nagy 2016-11-20 13:49:17 +01:00
parent a892d8725a
commit ec9081e81c
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ class Node(object):
:param lst: relative path
:type lst: string or list of string
"""
if os.path.isabs(lst):
if isinstance(lst, str) and os.path.isabs(lst):
node = self.ctx.root.make_node(lst)
else:
node = self.get_bld().make_node(lst)