0001# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
0002# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
0003"""
0004This module contains default sysconfig settings.
0005
0006The command object is inserted into this module as a global variable
0007``paste_command``, and can be used inside functions.
0008"""
0009
0010def add_custom_options(parser):
0011    """
0012    This method can modify the ``parser`` object (which is an
0013    ``optparse.OptionParser`` instance).  This can be used to add new
0014    options to the command.
0015    """
0016    pass
0017
0018def default_config_filename(installer):
0019    """
0020    This function can return a default filename or directory for the
0021    configuration file, if none was explicitly given.
0022
0023    Return None to mean no preference.  The first non-None returning
0024    value will be used.
0025
0026    Pay attention to ``installer.expect_config_directory`` here,
0027    and to ``installer.default_config_filename``.  
0028    """
0029    return installer.default_config_filename
0030
0031def install_variables(installer):
0032    """
0033    Returns a dictionary of variables for use later in the process
0034    (e.g., filling a configuration file).  These are combined from all
0035    sysconfig files.
0036    """
0037    return {}
0038
0039def post_setup_hook(installer, config_file):
0040    """
0041    This is called at the very end of ``paster setup-app``.  You
0042    might use it to register an application globally.
0043    """
0044    pass