diff options
author | kballou <kballou@devnulllabs.io> | 2014-10-03 08:36:20 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2014-10-03 08:36:20 -0600 |
commit | b5be3f2b75ec07db67fe5f17f8fcf832da23c7cd (patch) | |
tree | 0d4e724bda90247cd7df478a9e3a93a2a08e0e87 | |
parent | 5c5339ea0cc76d8d6d7a5e643aeee319c3079e86 (diff) | |
download | xnt-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.py | 5 |
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__: |