[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GT] SVN Commit r605 - trunk/Scripts



Author: thomas
Date: 2008-04-14 14:22:36 +0200 (Mon, 14 Apr 2008)
New Revision: 605

Modified:
   trunk/Scripts/analyze_backtest.pl
Log:
Allow analyze_backtest.pl to work without a provided template.

Modified: trunk/Scripts/analyze_backtest.pl
===================================================================
--- trunk/Scripts/analyze_backtest.pl	2008-04-14 12:21:45 UTC (rev 604)
+++ trunk/Scripts/analyze_backtest.pl	2008-04-14 12:22:36 UTC (rev 605)
@@ -60,11 +60,12 @@
 $outputdir = GT::Conf::get("BackTest::Directory") if (! $outputdir);
 $outputdir = "." if (! $outputdir);
 
-$template = GT::Conf::get('Template::analyze_backtest') if ($template eq '');
+my $mason_template = GT::Conf::get('Template::analyze_backtest') if ($template eq '');
+$template = $mason_template if defined $mason_template;
 
 my $spool = GT::BackTest::Spool->new($outputdir);
 
-  if ($template ne '') {
+if ($template ne '') {
 
    my $use = 'use HTML::Mason;use File::Spec;use Cwd;';
    eval $use;