projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7056eb3
)
Vor Ausführung Verzeichnis wechseln
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 28 Dec 2010 11:37:20 +0000
(12:37 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 12 Jan 2011 10:18:04 +0000
(11:18 +0100)
scripts/task_server.pl
patch
|
blob
|
history
diff --git
a/scripts/task_server.pl
b/scripts/task_server.pl
index
470272b
..
2460e1b
100755
(executable)
--- 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.
}