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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -