I’m having some difficulties to upload a python file to the digi W31-l21a
in the browser i have application>python>python files and then “Module search path:” where i put the path for the file “home/nathanforce/workspace/Digi/hello.py”
but when i hit “apply” (there’s no upload) he tells me it’s “Configuration successfully applied”
then i ssh to the digi and enter “python hello.py” and i get the error :
‘import site’ failed; use -v for traceback
‘import site’ failed; use -v for traceback
python: can’t open file ‘hello.py’: [Errno 13] ERROR
how can i know if the file is really loaded ? or is it another probleme ?
well first thanks for your answer
I rebooted the w31 and still get the same error “can’t open file ‘hello.py’: [Errno 13] ERROR”
i think that it’s trying to execute it directly from my pc and not uploading it.
am i doing it wrong to upload the file ?
i went to “Appication>Python>python files” and put the link to my python file in the “Module search path”.
Hi James, thanks for your answer it really helped me.
but does it mean there’s only the root directory and user directory on the routeur or am i getting it wrong?
if so upgrading the firmware would delete the uploaded lib ?