Changeset 3152 for trunk


Ignore:
Timestamp:
Aug 24, 2012 1:55:00 PM (12 years ago)
Author:
mmc
Message:

Fix to write the @tool directory into the driver/run files for all tools
as they run. Any tool that wants to know where it lives can query the
installation directory with a simple "rappture get" call by checking the
value: tool.version.application.directory(tool)

Note that this same element is written during installation by the
contribtool publication system, but it is overwritten in the Rappture
GUI for tools that haven't been published, or as a double-check of the
tool file that actually got executed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/main.tcl

    r3024 r3152  
    146146set xmlobj [Rappture::library $params(-tool)]
    147147
    148 set installdir [file dirname $params(-tool)]
    149 if {"." == $installdir} {
    150     set installdir [pwd]
    151 }
     148set installdir [file normalize [file dirname $params(-tool)]]
     149$xmlobj put tool.version.application.directory(tool) $installdir
    152150
    153151set tool [Rappture::Tool ::#auto $xmlobj $installdir]
Note: See TracChangeset for help on using the changeset viewer.