chiark / gitweb /
Installation fixes
[ypp-sc-tools.web-live.git] / yarrg / commod-email-processor
index d2f0e819f6ef8c0f41626424fe13beb624d4f088..bf42c0d65ef4b8344f29963de36080b35f664535 100755 (executable)
@@ -49,6 +49,12 @@ use strict (qw(vars));
 use POSIX;
 use MIME::Parser;
 
+BEGIN {
+    my $selfdir= $0;
+    $selfdir =~ s,/+[^/]*$,,;
+    chdir("$selfdir") or die "$selfdir $!";
+}
+
 use Commods;
 use CommodsDatabase;