From 9872e3b23d6602f533f023be5cf178aaf69b1b7a Mon Sep 17 00:00:00 2001 From: cslocum Date: Wed, 10 Sep 2014 18:48:39 +0000 Subject: move definition of allowed flags into __init__.py git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@1319 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/__init__.py | 9 +++++++++ steuermann/nodes.py | 1 - steuermann/run_all.py | 7 ------- 3 files changed, 9 insertions(+), 8 deletions(-) (limited to 'steuermann') diff --git a/steuermann/__init__.py b/steuermann/__init__.py index 0e77cbd..b811f10 100644 --- a/steuermann/__init__.py +++ b/steuermann/__init__.py @@ -1 +1,10 @@ __version__ = '2.0dev' + +allowed_flags = { + '--all' : '-a' , + '-a' : '' , # run all nodes non-interactively + '-r' : '=' , # give run name + '-n' : '' , # do not actually execute any processes + '-h' : '=' , # give hosts (*.ini) file +} + diff --git a/steuermann/nodes.py b/steuermann/nodes.py index 17b73ab..fb674b8 100644 --- a/steuermann/nodes.py +++ b/steuermann/nodes.py @@ -3,7 +3,6 @@ Stuff related to the tree structure of the command set ''' import fnmatch -from run_all import allowed_flags import sys #import exyapps.runtime diff --git a/steuermann/run_all.py b/steuermann/run_all.py index 425d5e3..fa8f11f 100644 --- a/steuermann/run_all.py +++ b/steuermann/run_all.py @@ -35,13 +35,6 @@ username=getpass.getuser() ##### -allowed_flags = { - '--all' : '-a' , - '-a' : '' , # run all nodes non-interactively - '-r' : '=' , # give run name - '-n' : '' , # do not actually execute any processes - '-h' : '=' , # give hosts (*.ini) file -} def main() : -- cgit