fix script
[buildfarm-server.git] / scripts / show_passwords.pl
index 687896f3ad19cb430f497805ccaf5b664ac0e053..073d2482e73389273a6fc6ae607c6736e10712c4 100755 (executable)
@@ -8,7 +8,9 @@ use Data::Dumper;
 use vars qw($dbhost $dbname $dbuser $dbpass $dbport
             $user_list_format
 );
-require "$ENV{BFConfDir}/BuildFarmWeb.pl";
+
+use FindBin qw($RealBin);
+require "$RealBin/../BuildFarmWeb.pl";
 
 die "no dbname" unless $dbname;
 die "no dbuser" unless $dbuser;