summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2014-10-03 08:36:20 -0600
committerkballou <kballou@devnulllabs.io>2014-10-03 08:36:20 -0600
commitb5be3f2b75ec07db67fe5f17f8fcf832da23c7cd (patch)
tree0d4e724bda90247cd7df478a9e3a93a2a08e0e87
parent5c5339ea0cc76d8d6d7a5e643aeee319c3079e86 (diff)
downloadxnt-b5be3f2b75ec07db67fe5f17f8fcf832da23c7cd.tar.gz
xnt-b5be3f2b75ec07db67fe5f17f8fcf832da23c7cd.tar.xz
Load buildfile into `build` variable
* attempting to access the wrong key from `kwargs` * attemptint to inspect elements of the string and not the _actual_ module
-rw-r--r--xnt/tasks/core_tasks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/xnt/tasks/core_tasks.py b/xnt/tasks/core_tasks.py
index 301a168..cce67e3 100644
--- a/xnt/tasks/core_tasks.py
+++ b/xnt/tasks/core_tasks.py
@@ -292,10 +292,11 @@ def __xnt_list_targets__(buildfile):
'''List targets (and doctstrings) of the provided build module'''
def __execute__(**kwargs):
'''Perform listing'''
+ build = __load_build__(kwargs['buildfile'])
try:
- for attr in dir(kwargs['build']):
+ for attr in dir(build):
try:
- func = getattr(kwargs['build'], attr)
+ func = getattr(build, attr)
if func.decorator == "target":
print(attr + ":")
if func.__doc__: