]> git.donarmstrong.com Git - rsem.git/blobdiff - rsem-generate-ngvector
Fixed a bug that will lead perl scripts fail to find the perl module they use
[rsem.git] / rsem-generate-ngvector
index 0f44fd4daa2f153e60d3874a09c948aebc606b62..137fa03db354e8e7078a8dd16b535549034f949e 100755 (executable)
@@ -2,7 +2,8 @@
 
 use Getopt::Long;
 use Pod::Usage;
-use File::Basename;
+use FindBin;
+use lib $FindBin::Bin;
 use strict;
 
 use rsem_perl_utils;
@@ -16,7 +17,7 @@ GetOptions("k=i" => \$k,
 pod2usage(-verbose => 2) if ($help == 1);
 pod2usage(-msg => "Invalid number of arguments!", -exitval => 2, -verbose => 2) if (scalar(@ARGV) != 2);
 
-my ($fn, $dir, $suf) = fileparse($0);
+my $dir = "$FindBin::Bin/";
 my $command = "";
 
 $command = $dir."EBSeq/rsem-for-ebseq-calculate-clustering-info $k $ARGV[0] $ARGV[1].ump";