API Reference for Enthought Tool Suite 3.2.0
The location of the server lock file and the communication log
LOCK_PATH = os.path.join(ETSConfig.application_data, 'remote_editor_server.lock')
LOG_PATH = os.path.join(ETSConfig.application_data, 'remote_editor_server.log')
An obscure ASCII character that we used as separators in socket streams
MESSAGE_SEP = chr(7)
Reads the server port from the lock file. If the file does not exist returns -1.
Recieve a command with arguments from a socket that was previously sent information with 'send'.
Send a command with arguments (both strings) through a socket. This information is encoded with length information to ensure that everything is recieved.
A send a command to a port. Convenience function that uses 'send'.
Given a command suitable for 'Popen', open the process such that when this process is killed, the spawned process survives.
| Local name | Refers to |
|---|---|
| ETSConfig | enthought.etsconfig.etsconfig.ETSConfig |
| os | os |
| Popen | subprocess.Popen |
| socket | socket |
| sys | sys |
© Copyright 2002-2009 Enthought, Inc.