Reindent *.py with reindent.py
This commit is contained in:
@@ -23,18 +23,18 @@ server_port = {
|
||||
'quieck': 60014}
|
||||
}
|
||||
inst_test_sockoffset = {
|
||||
'echidna' : 0,
|
||||
'wombat' : 100,
|
||||
'kowari' : 200,
|
||||
'dingo' : 300,
|
||||
'quokka' : 400,
|
||||
'platypus' : 500,
|
||||
'pelican' : 600,
|
||||
'taipan' : 700,
|
||||
'lyrebird' : 800,
|
||||
'kookaburra' : 900,
|
||||
'bilby' : 1000,
|
||||
'emu' : 1100
|
||||
'echidna' : 0,
|
||||
'wombat' : 100,
|
||||
'kowari' : 200,
|
||||
'dingo' : 300,
|
||||
'quokka' : 400,
|
||||
'platypus' : 500,
|
||||
'pelican' : 600,
|
||||
'taipan' : 700,
|
||||
'lyrebird' : 800,
|
||||
'kookaburra' : 900,
|
||||
'bilby' : 1000,
|
||||
'emu' : 1100
|
||||
}
|
||||
|
||||
deflt_dir = '/usr/local/sics/server'
|
||||
@@ -194,27 +194,27 @@ def main(**kwargs):
|
||||
cmd_grp.add_argument('cmd', choices=['start', 'stop', 'status'])
|
||||
# Advanced arguments
|
||||
adv_grp.add_argument('-c', '--config', help= args_config_help % inst_config,
|
||||
default = inst_config )
|
||||
default = inst_config )
|
||||
adv_grp.add_argument('-d', '--dir', help=args_dir_help % deflt_dir,
|
||||
default = deflt_dir)
|
||||
default = deflt_dir)
|
||||
adv_grp.add_argument('-t', '--test',
|
||||
choices=['fullsim', 'fakedev', 'scriptval'],
|
||||
help=args_dir_help % deflt_test, default=deflt_test)
|
||||
choices=['fullsim', 'fakedev', 'scriptval'],
|
||||
help=args_dir_help % deflt_test, default=deflt_test)
|
||||
adv_grp.add_argument('-u', '--user', help= args_user_help % deflt_user,
|
||||
default = deflt_user )
|
||||
default = deflt_user )
|
||||
adv_grp.add_argument('--sockoffset',
|
||||
help= args_sockoffset_help % deflt_sockoffset,
|
||||
choices=inst_test_sockoffset.keys(),
|
||||
default = deflt_sockoffset )
|
||||
help= args_sockoffset_help % deflt_sockoffset,
|
||||
choices=inst_test_sockoffset.keys(),
|
||||
default = deflt_sockoffset )
|
||||
exc_grp = parser.add_mutually_exclusive_group()
|
||||
exc_grp.add_argument('--sicsonly', help= args_sicsonly_help,
|
||||
action='store_true', default=False)
|
||||
action='store_true', default=False)
|
||||
exc_grp.add_argument('--scriptval', help= args_scriptval_help,
|
||||
action='store_true', default=False)
|
||||
action='store_true', default=False)
|
||||
exc_grp.add_argument('--dev',
|
||||
help= args_dir_help % (server_port['sics']['server'] +
|
||||
inst_test_sockoffset[inst_name]),
|
||||
action='store_true')
|
||||
help= args_dir_help % (server_port['sics']['server'] +
|
||||
inst_test_sockoffset[inst_name]),
|
||||
action='store_true')
|
||||
args = parser.parse_args()
|
||||
# By default don't launch script validator in development environments.
|
||||
if args.dev:
|
||||
|
||||
Reference in New Issue
Block a user