Skip to content

Commit

Permalink
Add pwd to loadpath if rubyLoadpath not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Roza committed May 3, 2020
1 parent f3d167e commit d024df1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions binding/binding-mri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,11 @@ static void mriBindingExecute() {
rb_ary_push(lpaths, pathv);
}
}
#ifndef WORKDIR_CURRENT
else {
rb_ary_push(lpaths, rb_str_new_cstr(getenv("PWD")));
}
#endif
#ifdef MARIN
else {
rb_ary_push(lpaths, rb_str_new_cstr("ruby/extensions/2.5.0"));
Expand Down

0 comments on commit d024df1

Please sign in to comment.