Skip to content

Commit

Permalink
- Fixed the -c command-line switch for when Sidef is actually insta…
Browse files Browse the repository at this point in the history
…lled.
  • Loading branch information
trizen committed Dec 13, 2015
1 parent 3f52f0f commit 8b8c966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/sidef
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ sub compile_to_perl {
my (%opt) = @_;

require File::Basename;
my $path = File::Basename::dirname($INC{'Sidef.pm'});
my $path = File::Spec->catdir(File::Basename::dirname($INC{'Sidef.pm'}), 'Sidef');

my $package_content = <<"HEAD";
#!$^X
Expand Down Expand Up @@ -641,8 +641,8 @@ HEAD

close $fh;
}
}
} => $path
}
} => ($path, $INC{'Sidef.pm'})
);

$package_content .= <<'FOOT';
Expand Down

0 comments on commit 8b8c966

Please sign in to comment.