Closed leeyiding closed 2 months ago
@leeyiding thanks for your report. This issue in the Nanos kernel is fixed by https://github.com/nanovms/nanos/pull/2036.
You can use the fixed kernel by adding --nanos-version ee1681d
to your Ops command line.
Thank you very much. After testing, it worked.
Sometimes the main file of a python program does not have to be placed in the root directory, but organizes all the code files into one directory, so the path to the working directory needs to be modified, but I found that the
cwd
variable does not take effect.I made a minimal replica code here.
tree
config.json
main.py
run
ops pkg load eyberg/python:3.10.6 -c config.json
You can see that the program output '/' instead of '/program' as I expected. I don't know if the
cwd
variable is not effective or if my configuration or understanding is wrong.