2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 11:19:52 +01:00

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

View File

@ -788,7 +788,7 @@ class Node(object):
:param lst: relative path :param lst: relative path
:type lst: string or list of string :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) node = self.ctx.root.make_node(lst)
else: else:
node = self.get_bld().make_node(lst) node = self.get_bld().make_node(lst)