avlpy/avlRun.py
def custom_cmd(self,cmd_list):
		""" This function runs the custom command sequence given in cmd_list

			--------------------------------------------------------------------------------------
			INPUTS
				- cmd_list: list of string
		"""
		cmd_tmp = self.cmd_path.copy()

		[cmd_tmp.append(cmd)for cmd in cmd_list]

		if cmd_list[-1] == "q":
			cmd_bytes = "\n".join(cmd_tmp)
		else:
			cmd_tmp.append("q")
			cmd_bytes = "\n".join(cmd_tmp)

		with open(self.tmp_dir + '/stdout.txt','wb') as outfile:
			return(subprocess.run(self.avl_opn_cmd, input=cmd_bytes.encode(), stdout =outfile))
 This function runs the custom command sequence given in cmd_list

			--------------------------------------------------------------------------------------
			INPUTS
				- cmd_list: list of string
		
This function runs the custom command sequence given in cmd_list
INPUTS
cmd_list: list of string
This function runs the custom command sequence given in cmd_list INPUTS cmd_list : list of string
def custom_cmd(self,cmd_list):
		cmd_tmp = self.cmd_path.copy()
		[cmd_tmp.append(cmd)for cmd in cmd_list]
		if cmd_list[-1] == "q":
			cmd_bytes = "\n".join(cmd_tmp)
		else:
			cmd_tmp.append("q")
			cmd_bytes = "\n".join(cmd_tmp)
		with open(self.tmp_dir + '/stdout.txt','wb') as outfile:
			return(subprocess.run(self.avl_opn_cmd, input=cmd_bytes.encode(), stdout =outfile))
def custom_cmd ( self , cmd_list ) : cmd_tmp = self . cmd_path . copy ( ) [ cmd_tmp . append ( cmd ) for cmd in cmd_list ] if cmd_list [ - 1 ] == "q" : cmd_bytes = "\n" . join ( cmd_tmp ) else : cmd_tmp . append ( "q" ) cmd_bytes = "\n" . join ( cmd_tmp ) with open ( self . tmp_dir + '/stdout.txt' , 'wb' ) as outfile : return ( subprocess . run ( self . avl_opn_cmd , input = cmd_bytes . encode ( ) , stdout = outfile ) )
This function runs the custom command sequence given in cmd_list
INPUTS
 cmd_list: list of string
This function runs the custom command sequence given in cmd_list INPUTS cmd_list : list of string
""" This function runs the custom command sequence given in cmd_list

			--------------------------------------------------------------------------------------
			INPUTS
				- cmd_list: list of string
		"""
self
cmd_list