]> git.donarmstrong.com Git - rsem.git/blobdiff - rsem-plot-transcript-wiggles
Fixed a bug that will lead perl scripts fail to find the perl module they use
[rsem.git] / rsem-plot-transcript-wiggles
index 35dfd75544c7d50d6afa61a41d39ecd8c3241608..11027a1ea30fa91b880d5e776dfdd5b032a2d71b 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;
@@ -18,7 +19,7 @@ GetOptions("gene-list" => \$gene_list,
 pod2usage(-verbose => 2) if ($help == 1);
 pod2usage(-msg => "Invalid number of arguments!", -exitval => 2, -verbose => 2) if (scalar(@ARGV) != 3);
 
-my ($fn, $dir, $suf) = fileparse($0);
+my $dir = "$FindBin::Bin/";
 my $command = "";
 
 unless (-e "$ARGV[0].transcript.sorted.bam") {