Changeset 3054


Ignore:
Timestamp:
Sep 29, 2010 8:37:24 PM (11 years ago)
Author:
khunter
Message:

Make double clicking on the command line easier. Previously, we
were making output line this:

Solver log file=/tmp/tmpkksT7R.glpk.log
Solver solution file=/tmp/tmpLIKdcW.glpk.soln
Solver problem files=('/tmp/tmpcS47ok.pyomo.lp',)

The issue is that on the Linux or PuTTY console, if one double
clicks either the log or the solution file, one also selects the
'file=' part. This updates the above to output instead:

Solver log file: '/tmp/tmpkksT7R.glpk.log'
Solver solution file: '/tmp/tmpLIKdcW.glpk.soln'
Solver problem files: ('/tmp/tmpcS47ok.pyomo.lp',)

Which means one can be double-click happy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/coopr/opt/solver/shellcmd.py

    r2778 r3054  
    125125        if self.keepFiles:
    126126           if self.log_file is not None:
    127               print "Solver log file=" + self.log_file
     127              print "Solver log file: '%s'" % self.log_file
    128128           if self.soln_file is not None:
    129               print "Solver solution file=" + self.soln_file
     129              print "Solver solution file: '%s'" % self.soln_file
    130130           if self._problem_files is not []:
    131                print "Solver problem files=",self._problem_files
     131              print "Solver problem files: %s" % str(self._problem_files)
    132132
    133133        sys.stdout.flush()
Note: See TracChangeset for help on using the changeset viewer.