]> git.donarmstrong.com Git - rsem.git/blobdiff - rsem-prepare-reference
Fixed a bug that will lead perl scripts fail to find the perl module they use
[rsem.git] / rsem-prepare-reference
index 5d954a1fc7b7f411fa8fe46d43b5cda1cb181fa6..223d79db8a2d3852d0fa601decdef89651b7aae5 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;
@@ -60,7 +61,7 @@ elsif ($subsetFile ne "") { $polyAChoice = 2; }
 
 if ($bowtie_path ne "") { $bowtie_path .= "/"; }
 
-my ($fn, $dir, $suf) = fileparse($0); 
+my $dir = "$FindBin::Bin/";
 my $command = "";
 
 if ($type == 0) {