aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2010-12-31 00:11:22 +0100
committerStefan Kangas <stefankangas@gmail.com>2010-12-31 00:11:22 +0100
commit3bab37d8124cca63999c22a03dfd6f29f2ceb7f6 (patch)
tree6ae46cf3eac4224d998c1e599512149a147858fd
parentc43609fc547a7e4329482bdc900ccf3c2cea98ff (diff)
Use FindBin to find library path
-rwxr-xr-xfripost-adduser.pl3
-rwxr-xr-xfripost-mkpass.pl3
2 files changed, 6 insertions, 0 deletions
diff --git a/fripost-adduser.pl b/fripost-adduser.pl
index b0f107e..4cf2040 100755
--- a/fripost-adduser.pl
+++ b/fripost-adduser.pl
@@ -22,6 +22,9 @@ Necessary steps to add a user to the system:
our $VERSION = '0.01';
+use FindBin qw($Bin);
+use lib "$Bin/lib";
+
use Data::Dumper;
use DateTime;
use Email::Valid;
diff --git a/fripost-mkpass.pl b/fripost-mkpass.pl
index 4740f5b..3b0c9f7 100755
--- a/fripost-mkpass.pl
+++ b/fripost-mkpass.pl
@@ -10,6 +10,9 @@ fripost-mkpass.pl - Create a random new password
=cut
+use FindBin qw($Bin);
+use lib "$Bin/lib";
+
our $VERSION = '0.01';
use Fripost::Password;