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