コード例 #1
0
	def open ( self ):
	#----------------------------------------------------------------------

		if not self.m_command:
			return False

		try:
			self.m_popen = subprocess.Popen(self.m_command, bufsize=0,
											stdin=subprocess.PIPE,
											stdout=subprocess.PIPE,
											close_fds=True)
		except:
			self.m_popen = None
			return False

		return BaseDriver.open(self, self.m_popen.stdout, self.m_popen.stdin)