]> git.donarmstrong.com Git - rsem.git/blobdiff - rsem-calculate-expression
Fixed a bug that will lead perl scripts fail to find the perl module they use
[rsem.git] / rsem-calculate-expression
index 4fbb4a59beac6a449a90e4dc6335d7a9633f6dcc..fec2e310471c331d4bdf3b745ad4c129f2f5aee1 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 qw(runCommand collectResults showVersionInfo);
@@ -109,7 +110,7 @@ GetOptions("keep-intermediate-files" => \$keep_intermediate_files,
           "q|quiet" => \$quiet,
           "h|help" => \$help) or pod2usage(-exitval => 2, -verbose => 2);
 
-my ($fn, $dir, $suf) = fileparse($0);
+my $dir = "$FindBin::Bin/";
 
 pod2usage(-verbose => 2) if ($help == 1);
 &showVersionInfo($dir) if ($version == 1);