def prep_service_parms(args):
 serv = [os.path.normpath(os.path.abspath(sys.argv[0]))]
 for arg in args:
  serv.append(arg[0])
  if arg[1]:
   serv.append(arg[1])
 serv.append('-d')
 return serv

def prep_service_parms ( args ) : serv = [ os . path . normpath ( os . path . abspath ( sys . argv [ 0 ] ) ) ] for arg in args : serv . append ( arg [ 0 ] ) if arg [ 1 ] : serv . append ( arg [ 1 ] ) serv . append ( '-d' ) return serv
prepare parameter list for service .