allow path in from_py_with
and deprecate string literal
#12348
Loading
from_py_with
and deprecate string literal
#12348