summaryrefslogtreecommitdiff
path: root/xnt/tasks.py
diff options
context:
space:
mode:
authorkennyballou <kballou@onyx.boisestate.edu>2012-11-07 22:28:06 -0700
committerkballou <kballou@onyx.boisestate.edu>2012-11-07 22:28:06 -0700
commite07eaa57f01702315d66566b2f4c011461c666d1 (patch)
treee2dea401e31d6e6d78c412b8aac5f36715c7c0be /xnt/tasks.py
parent013e517a706344c93621f9d7bd065623d767a1b0 (diff)
downloadxnt-e07eaa57f01702315d66566b2f4c011461c666d1.tar.gz
xnt-e07eaa57f01702315d66566b2f4c011461c666d1.tar.xz
Add ``xnt`` task for calling sub-build files
Diffstat (limited to 'xnt/tasks.py')
-rw-r--r--xnt/tasks.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/xnt/tasks.py b/xnt/tasks.py
index 3aee69b..794bb8b 100644
--- a/xnt/tasks.py
+++ b/xnt/tasks.py
@@ -94,6 +94,15 @@ def echo(msg, tofile):
def log(msg="",lvl=logging.INFO):
logger.log(lvl, msg)
+def xnt(target, path):
+ """
+ Invoke xnt on another build file in a different directory
+ """
+ import xnt.xenant
+ xnt.xenant.invokeBuild(
+ xnt.xenant.__loadBuild(path),
+ target)
+
def call(command, stdout=None, stderr=None):
"""
Execute the given command, redirecting stdout and stderr