First of all, thank you all for your kind and kind support in this matter!
The key to running a twisted application through the PyDev Eclipse module is to define twistd.py as the main module in the launch configuration. You can use the following steps:
These instructions assume that you can already run twisted applications on your system, which means that you have installed zope and twisted. For example, the following already works for you:
python twistd.py mytwistapp.tac
, PyDev Eclipse, PYTHONPATH.
1. → → PyDev → (Python)
2. "" (System PYTHONPATH) Python (, c:\python26, c:\python26\dlls \, c:\python26\lib ..).
3. Zope Twisted . , c:\python26\lib\site-packages\twisted c:\python26\lib\site-packages\zope.interfaces-3.6.1-py2.6-win32.egg
Pydev
- PyDev (, MYPROJ)
- * twistd.py *. ( → → → → " " → c:\python26\scripts\twistd. ). , twistd.py Eclipse.
, , .
- Run → Run Configurations
- " "
- : Twisted ( - )
- : MYPROJ
- : ${workspace_loc: MYPROJ/twistd.py}
- ""
- : -ny ${workspace_loc: MYPROJ/mytwistapp.tac}
! twistd.py , twsttd.py, .