module Bootsnap
def rb_get_path(fname)
The native version is very intricate and may behave differently on windows etc.
This is a semi-accurate ruby implementation of the native `rb_get_path(VALUE)` function.
def rb_get_path(fname) path_path = fname.respond_to?(:to_path) ? fname.to_path : fname String.try_convert(path_path) || raise(TypeError, "no implicit conversion of #{path_path.class} into String") end