B u `@sRdZddlZddlZddlZddlmZddlmZe dZ GdddeZ dS))SPSolverShellCommandN)TempfileManager)SPSolverz pyomo.pyspcsjeZdZfddZddZddZddZed d Zed d Z dddZ ddZ fddZ Z S)rcs"tt|j||d|_i|_dS)N)superr__init__ _executable_files)selfargskwds) __class__K/tmp/pip-unpacked-wheel-n62dbgi3/pyomo/pysp/solvers/spsolvershellcommand.pyrszSPSolverShellCommand.__init__cOstj||}||j|<|S)N)rZcreate_tempdirr)r labelr r dirnamer r r_create_tempdirs  z$SPSolverShellCommand._create_tempdircOstj||}||j|<|S)N)rZcreate_tempfiler)r rr r filenamer r r_create_tempfile!s  z%SPSolverShellCommand._create_tempfilecCstj|dd||j|<dS)NF)exists)rZ add_tempfiler)r rrr r r _add_tempfile&sz"SPSolverShellCommand._add_tempfilecCs|jS)z#The executable used by this solver.)r)r r r r executable+szSPSolverShellCommand.executablecCs|jS)zA dictionary maintaining the location of various solvers files generated during the most recent solve. All files will be removed before a solve completes unless the keep_solver_files keyword was set to True.)r)r r r rfiles0szSPSolverShellCommand.filesTcCsL|s ||_n s