asynchronous - twisted web server not ruuning a .rpy file -
i toddler on twisted .i trying run twisted web server using command
twistd web --resource-script=~/desktop/step/ecdemo.rpy assume file(ecdemo.rpy) located on desktop in step folder
the traceback when visit page(127.0.0.1:8080/ecdemo.rpy) shows
<type 'exceptions.ioerror'>: [errno 2] no such file or directory: '~/desktop/step/ecdemo.rpy however if run same file command python ecdemo.rpy runs smoothly.
the program renders request http page
i know basic not know if me started come better problems...
thanks help.
your shell didn't expand ~ home directory. try instead:
twistd web --resource-script ~/desktop/step/ecdemo.rpy notice removed = between option name , value. let shell turn ~ /home/whoever.
Comments
Post a Comment