You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tohil::exec {import mymodule} or tohil::import mymodule will both complain No module named 'mymodule' (while evaluating python code) from python code executed by tohil whereas a mymodule.py exists in same dir the script is running from. import mymodule from normal python works fine. Importing system modules through tohil works fine. Tohil passes all tests.
I also noticed python's cffi module is broken in a similar manner: cffi itself imports fine, but smth like ffi.set_source("_test", "..."); ffi.compile(); from _test import lib
Will again complain of module _test not being found, whereas it will work fine in standalone python
The text was updated successfully, but these errors were encountered:
It might be worth emulating this behavior in tohil, but for the time being you can resolve your issue by manually prepending sys.path with '' before attempting the import.
tohil::exec {import mymodule}
ortohil::import mymodule
will both complainNo module named 'mymodule' (while evaluating python code) from python code executed by tohil
whereas a mymodule.py exists in same dir the script is running from.import mymodule
from normal python works fine. Importing system modules through tohil works fine. Tohil passes all tests.I also noticed python's
cffi
module is broken in a similar manner:cffi
itself imports fine, but smth likeffi.set_source("_test", "..."); ffi.compile(); from _test import lib
Will again complain of module _test not being found, whereas it will work fine in standalone python
The text was updated successfully, but these errors were encountered: