From 88e5a86ec8d02e0fcc98a3fbefff39f0a6ba1427 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Dec 2010 12:37:20 +0100 Subject: [PATCH] =?utf8?q?Vor=20Ausf=C3=BChrung=20Verzeichnis=20wechseln?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/task_server.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 470272b75..2460e1b56 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -3,6 +3,14 @@ use strict; BEGIN { + require Cwd; + + my $dir = $0; + $dir = Cwd::getcwd() . '/' . $dir unless $dir =~ m|^/|; + $dir =~ s|[^/]+$|..|; + + chdir($dir) || die "Cannot change directory to ${dir}\n"; + unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML). push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version. } -- 2.20.1