Add pwd to loadpath if rubyLoadpath not set

This commit is contained in:
Roza 2020-05-02 22:33:58 -04:00
parent f3d167e5f5
commit d024df1aed

View file

@ -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"));