rpc.py (pymol-v2.1.0.tar.bz2) | : | rpc.py (pymol-open-source-2.2.0) | ||
---|---|---|---|---|
""" an XML-RPC server to allow remote control of PyMol | """ an XML-RPC server to allow remote control of PyMol | |||
Author: Greg Landrum (glandrum@users.sourceforge.net) | Author: Greg Landrum (glandrum@users.sourceforge.net) | |||
Created: January 2002 | Created: January 2002 | |||
$LastChangedDate: 2016-12-05 20:04:04 +0100 (Mon, 05 Dec 2016) $ | $LastChangedDate$ | |||
License: PyMol | License: PyMol | |||
Requires: | Requires: | |||
- a python xmlrpclib distribution containing the SimpleXMLRPCServer | - a python xmlrpclib distribution containing the SimpleXMLRPCServer | |||
module (1.0 or greater should be fine) | module (1.0 or greater should be fine) | |||
- python with threading enabled | - python with threading enabled | |||
RD Version: $Rev: 4164 $ | RD Version: $Rev$ | |||
Modified 2013-04-17 Thomas Holder, Schrodinger, Inc. | Modified 2013-04-17 Thomas Holder, Schrodinger, Inc. | |||
""" | """ | |||
from __future__ import print_function | from __future__ import print_function | |||
import sys | import sys | |||
if sys.version_info[0] == 2: | if sys.version_info[0] == 2: | |||
import SimpleXMLRPCServer | import SimpleXMLRPCServer | |||
else: | else: | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |