/usr/share/pydirector/pydir.py is in python-pydirector 1.0.0-2.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/bin/python
# main driver script for pythondirector
import sys, resource
def versionCheck():
if not (hasattr(sys, 'version_info') and sys.version_info > (2,1)):
raise RuntimeError, "PythonDirector needs Python2.1 or greater"
def main():
from pydirector.pdmain import PythonDirector
resource.setrlimit(resource.RLIMIT_NOFILE, (1024, 1024))
config = sys.argv[1]
pd = PythonDirector(config)
pd.start(profile=0)
if __name__ == "__main__":
versionCheck()
main()
#
# Copyright (c) 2002-2004 ekit.com Inc (http://www.ekit-inc.com)
# and Anthony Baxter <anthony@interlink.com.au>
#
# $Id: pydir.py,v 1.11 2004/12/14 13:31:39 anthonybaxter Exp $
#
|