Add path to enable plotting from any directory.

This commit is contained in:
2010-06-07 12:40:20 +00:00
parent e14dd7303a
commit 7699459193
2 changed files with 7 additions and 5 deletions

View File

@ -624,9 +624,10 @@ void TrimSPGUI::PlotProfiles()
if ($filenames ne "" ) {
# my $Warning = Qt::MessageBox::information( this, "Big Fat Warning",
# "Warning:\nClose the plot using the menu FILE -> Quit ROOT\nDO NOT CLOSE USING X.");
my $TrimPath = $ENV{'PERLLIB'};
# Now that we have the file list send it to root macro for plotting.
my $cmd='root -n -l "plotRge.C(\"'.$filenames.'\")"&';
my $cmd='root -n -l "'.$TrimPath.'/plotRge.C(\"'.$filenames.'\")"&';
# my $pid = open(FTO,"$cmd");
# my $pid = open(FTO,"$cmd 2>&1 |");
# print "PID=$pid\n";