Skip to content

Commit

Permalink
Merge pull request #79 from odenbach/missing-abs-path
Browse files Browse the repository at this point in the history
added missing 'abs_path' function calls
  • Loading branch information
liske committed Oct 1, 2017
2 parents 089f156 + c086302 commit 0b6db3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/Interp/Perl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ sub files {
print STDERR "$LOGPREF #$pid: could not get a source file, skipping\n" if($self->{debug});
return ();
}
my $src = $ARGV[0];
my $src = abs_path ($ARGV[0]);
unless(-r $src && -f $src) {
chdir($cwd);
print STDERR "$LOGPREF #$pid: source file not found, skipping\n" if($self->{debug});
Expand Down
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/Interp/Python.pm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ sub files {
print STDERR "$LOGPREF #$pid: could not get a source file, skipping\n" if($self->{debug});
return ();
}
my $src = $ARGV[0];
my $src = abs_path ($ARGV[0]);
unless(-r $src && -f $src) {
chdir($cwd);
print STDERR "$LOGPREF #$pid: source file not found, skipping\n" if($self->{debug});
Expand Down

0 comments on commit 0b6db3c

Please sign in to comment.