summarylogtreecommitdiffstats
path: root/basedir.patch
blob: 8f71b8bb94acabe4c45784a09b32cdd51717575a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- opt/brother/Printers/DCPL2500D/cupswrapper/brother_lpdwrapper_DCPL2500D.orig	2014-09-29 10:02:44.000000000 +0200
+++ opt/brother/Printers/DCPL2500D/cupswrapper/brother_lpdwrapper_DCPL2500D	2016-04-04 00:39:29.552531316 +0200
@@ -44,13 +44,7 @@ $width=-1;
 $height=-1;
 
 #my $basedir = Cwd::realpath ($0);
-my $basedir = `readlink $0`;
-if ( $basedir eq '' ){
-    $basedir = `realpath $0`;
-}
-chomp($basedir);
-
-$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g;
+my $basedir = "/opt/brother/Printers/DCPL2500D";
 
 
 %units = ( pt   => \&pt2dot,