]> git.sesse.net Git - wloh/commitdiff
Fix include paths for static scripts.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 13 Jun 2012 13:19:02 +0000 (15:19 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 13 Jun 2012 13:19:02 +0000 (15:19 +0200)
sync.pl
train.pl

diff --git a/sync.pl b/sync.pl
index d57af449979c05672fc658b0c930e7e28cf744ef..9af864217b9712c67e7fc8536779e87e69c2aa15 100755 (executable)
--- a/sync.pl
+++ b/sync.pl
@@ -5,7 +5,8 @@ use warnings;
 no warnings qw(once);
 use Encode;
 use Time::HiRes;
-require './config.pm';
+use lib qw( include );
+require 'config.pm';
 
 sub copy_escape {
        my $x = shift;
index aaafde473c6b84f3cd7b3855057c5b6baf21b748..e3b106b15fea1758dd109c071d2e0cdd596291b9 100755 (executable)
--- a/train.pl
+++ b/train.pl
@@ -4,7 +4,8 @@ use strict;
 use warnings;
 no warnings qw(once);
 use POSIX;
-require './config.pm';
+use lib qw( include );
+require 'config.pm';
 
 # Find last completely done season 
 sub find_last_season {