root/galaxy-central/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/default_sysconfig.py @ 3

リビジョン 3, 1.4 KB (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
3"""
4This module contains default sysconfig settings.
5
6The command object is inserted into this module as a global variable
7``paste_command``, and can be used inside functions.
8"""
9
10def add_custom_options(parser):
11    """
12    This method can modify the ``parser`` object (which is an
13    ``optparse.OptionParser`` instance).  This can be used to add new
14    options to the command.
15    """
16    pass
17
18def default_config_filename(installer):
19    """
20    This function can return a default filename or directory for the
21    configuration file, if none was explicitly given.
22
23    Return None to mean no preference.  The first non-None returning
24    value will be used.
25
26    Pay attention to ``installer.expect_config_directory`` here,
27    and to ``installer.default_config_filename``. 
28    """
29    return installer.default_config_filename
30
31def install_variables(installer):
32    """
33    Returns a dictionary of variables for use later in the process
34    (e.g., filling a configuration file).  These are combined from all
35    sysconfig files.
36    """
37    return {}
38
39def post_setup_hook(installer, config_file):
40    """
41    This is called at the very end of ``paster setup-app``.  You
42    might use it to register an application globally.
43    """
44    pass
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。