[Zope-CVS] CVS: Packages/SFTPGateway/bin - sftpgatewayctl:1.1

Fred L. Drake, Jr. fred at zope.com
Mon Jan 5 15:39:34 EST 2004


Update of /cvs-repository/Packages/SFTPGateway/bin
In directory cvs.zope.org:/tmp/cvs-serv4982

Added Files:
	sftpgatewayctl 
Log Message:
control script for the SFTP Gateway


=== Added File Packages/SFTPGateway/bin/sftpgatewayctl ===
#! /usr/bin/env python2.3
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Wrapper script for zdctl.py that uses the SFTP Gateway schema."""

import os
import sys

script = os.path.realpath(__file__)
bin = os.path.dirname(script)
src = os.path.join(os.path.dirname(bin), "src")

if bin in sys.path:
    sys.path.remove(bin)
if src not in sys.path:
    sys.path.insert(0, src)

import sftpgateway
import zdaemon.zdctl


# Main program
def main(args=None):
    options = zdaemon.zdctl.ZDCtlOptions()
    options.schemadir = os.path.dirname(sftpgateway.__file__)
    zdaemon.zdctl.main(args, options)


if __name__ == "__main__":
    main()




More information about the Zope-CVS mailing list