How can I pass a .pyc file to pyo3? #2360
-
I want to call a method in my Python project from my Rust code, which starts a daemon. Is this possible via this library or would I have to open a process instead of communicating directly via the FFI interface? |
Beta Was this translation helpful? Give feedback.
Answered by
davidhewitt
May 8, 2022
Replies: 1 comment
-
I think you have to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
deeprobin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you have to use
PyModule::import
to load a .pyc file, same as you would for a .py file.