]> mj.ucw.cz Git - gallery.git/commitdiff
Gallery2: Use FindBin to find libraries
authorMartin Mares <mj@ucw.cz>
Wed, 26 Dec 2012 13:07:16 +0000 (14:07 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:09 +0000 (21:14 +0100)
gal2/gal-cache
gal2/gal-gen
gal2/gal-metacat
gal2/gal-scan

index 5accb3fd58dace7c14bb43e7a01f71c84f4aed70..591a1cee3082e86d1778a06dbf43f63bd70ca8fb 100755 (executable)
@@ -5,7 +5,8 @@
 use strict;
 use warnings;
 
-use lib '/home/mj/web/gal2';
+use FindBin;
+use lib $FindBin::Bin;
 use UCW::Gallery qw(%CF);
 
 use Image::Magick;
index 3c1a6e98a81752dde349b14ae5816964b4d52310..1e7c3dd6d1562038f93ebf8ddbafdb5102b60b76 100755 (executable)
@@ -5,7 +5,8 @@
 use strict;
 use warnings;
 
-use lib '/home/mj/web/gal2';
+use FindBin;
+use lib $FindBin::Bin;
 use UCW::Gallery qw(%CF);
 
 use Image::Magick;
index 44889af0fe3e5bc37aab159dd779336e5c7bb0f9..78e3f8593306d8998400bd5d222b405571b4d664 100755 (executable)
@@ -5,7 +5,8 @@
 use strict;
 use warnings;
 
-use lib '/home/mj/web/gal2';
+use FindBin;
+use lib $FindBin::Bin;
 use UCW::Gallery;
 use Data::Dumper;
 
index aa286aff234d6b5a5729213014e5f92f3a441708..2cccfe13c82c6f4e2cdc373cef03eb146c497bbb 100755 (executable)
@@ -5,7 +5,8 @@
 use strict;
 use warnings;
 
-use lib '/home/mj/web/gal2';
+use FindBin;
+use lib $FindBin::Bin;
 use UCW::Gallery qw(%CF);
 
 use File::Spec;