Closed hyousefGopher closed 4 years ago
If you want to know how to load Python files from Python code, check the Python documentation. That's not related to inline-python
.
I tried like this:
c.run(python! {
from fox import load
load()
})
tried saving my fox.py
file at the root directory, as well as at the src
directory, but in both cases I got:
File "src\main.rs", line 41, in <module>
from fox import load
ModuleNotFoundError: No module named 'fox'
So not sure what is the correct location to save the file in!
You'll need to add the path in sys.path
in Python.
Instead of writting:
Can I write something like:
Where "file.py" is: