/[suikacvs]/webroot/gate/cvs.cgi
Suika

Contents of /webroot/gate/cvs.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Aug 15 09:49:23 2003 UTC (20 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
*** empty log message ***

1 wakaba 1.1 #!/usr/bin/python
2     # -*-python-*-
3     #
4     # Copyright (C) 1999-2001 The ViewCVS Group. All Rights Reserved.
5     #
6     # By using this file, you agree to the terms and conditions set forth in
7     # the LICENSE.html file which can be found at the top level of the ViewCVS
8     # distribution or at http://viewcvs.sourceforge.net/license-1.html.
9     #
10     # Contact information:
11     # Greg Stein, PO Box 760, Palo Alto, CA, 94302
12     # gstein@lyra.org, http://viewcvs.sourceforge.net/
13     #
14     # -----------------------------------------------------------------------
15     #
16     # viewcvs: View CVS repositories via a web browser
17     #
18     # -----------------------------------------------------------------------
19     #
20     # This is a teeny stub to launch the main ViewCVS app. It checks the load
21     # average, then loads the (precompiled) viewcvs.py file and runs it.
22     #
23     # -----------------------------------------------------------------------
24     #
25    
26     #########################################################################
27     #
28     # INSTALL-TIME CONFIGURATION
29     #
30     # These values will be set during the installation process. During
31     # development, they will remain None.
32     #
33    
34 wakaba 1.2 LIBRARY_DIR = "/usr/local/viewcvs/lib"
35 wakaba 1.1
36     #########################################################################
37     #
38     # Adjust sys.path to include our library directory
39     #
40    
41     import sys
42    
43     if LIBRARY_DIR:
44     sys.path.insert(0, LIBRARY_DIR)
45     else:
46     sys.path[:0] = ['../lib'] # any other places to look?
47    
48     #########################################################################
49    
50     ### add code for checking the load average
51    
52     #########################################################################
53    
54     # go do the work
55     import viewcvs
56     viewcvs.run_cgi()

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24