-
Notifications
You must be signed in to change notification settings - Fork 42
/
config.py
22 lines (17 loc) · 828 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Default URL of the validator itself... feel free to beautify as you like
import os
HOMEURL = os.environ['HTTP_HOST'] + os.environ['SCRIPT_NAME']
if not HOMEURL.startswith('http://'): HOMEURL = 'http://' + HOMEURL
# This is where the CGI itself is... other supporting scripts (like
# feedfinder) may be placed here.
WEBDIR = '/'.join(os.environ['SCRIPT_FILENAME'].split('/')[0:-1])
# This following value is primarily used for setting up the other values...
HOMEDIR = WEBDIR
# This is where local python libraries are installed. This may be useful
# for locating a locally installed libxml2 library, for example...
PYDIR = HOMEDIR + r'/lib/python/'
# This is where the feedvalidator code lives...
SRCDIR = WEBDIR + r'/src'
# The web location prefix of the docs and CSS, relative to check.cgi
DOCSURL='docs'
CSSURL='css'