]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Tools/faqwiz/faqw.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Tools / faqwiz / faqw.py
CommitLineData
4710c53d 1#!/usr/bin/env python\r
2\r
3"""FAQ wizard bootstrap."""\r
4\r
5# This is a longer version of the bootstrap script given at the end of\r
6# faqwin.py; it prints timing statistics at the end of the regular CGI\r
7# script's output (so you can monitor how it is doing).\r
8\r
9# This script should be placed in your cgi-bin directory and made\r
10# executable.\r
11\r
12# You need to edit the first line and the lines that define FAQDIR and\r
13# SRCDIR, below: change /usr/local/bin/python to where your Python\r
14# interpreter lives, change the value for FAQDIR to where your FAQ\r
15# lives, and change the value for SRCDIR to where your faqwiz.py\r
16# module lives. The faqconf.py and faqcust.py files live there, too.\r
17\r
18import os\r
19t1 = os.times() # If this doesn't work, just get rid of the timing code!\r
20try:\r
21 FAQDIR = "/usr/people/guido/python/FAQ"\r
22 SRCDIR = "/usr/people/guido/python/src/Tools/faqwiz"\r
23 import os, sys\r
24 os.chdir(FAQDIR)\r
25 sys.path.insert(0, SRCDIR)\r
26 import faqwiz\r
27except SystemExit, n:\r
28 sys.exit(n)\r
29except:\r
30 t, v, tb = sys.exc_info()\r
31 print\r
32 import cgi\r
33 cgi.print_exception(t, v, tb)\r