Adding Twisted Utilities to Your Path

Twisted includes a number of scripts and utilities that you'll need to use. For convenience, you should make sure these are available in your path.

1.3.1. How Do I Do That?

Typically, all you have to do is add Twisted's utility directory to your operating system's command search path. Follow the specific instructions given in the following section for your platform.

1.3.1.1. Windows

Twisted's utilities will be installed in the Python scripts directory (typically in a location such as c:Python23scripts). Twisted includes a helpful Programs menu entry that launches a Windows command prompt with the Python scripts directory added to %PATH%. It's located under Programs Twisted (Python [version]) images/ent/U2192.GIF border=0> Twisted Command Prompt. Use this menu entry to launch your command prompt when you need to run the Twisted utilities, or edit your 1.3.1.2. Linux

Twisted's utilities will be installed in the same directory as your python binary (probably /usr/bin or /usr/local/bin), so you shouldn't need to make any changes to your $PATH.

1.3.1.3. Mac OS X

If you're using the version of Python included with Mac OS X 2.3 "Jaguar" or later, Twisted's utilities will be installed under /System/Library/Frameworks/Python.framework/Versions/Current/bin. Add this directory to your $PATH:


 $ set PATH=$PATH:/System/Library/Frameworks/Python.framework/Versions/Current/bin


Getting Started

Building Simple Clients and Servers

Web Clients

Web Servers

Web Services and RPC

Authentication

Mail Clients

Mail Servers

NNTP Clients and Servers

SSH

Services, Processes, and Logging



Twisted Network Programming Essentials
Twisted Network Programming Essentials
ISBN: 0596100329
EAN: 2147483647
Year: 2004
Pages: 107
Authors: Abe Fettig

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net