config.py
Go to the documentation of this file.
1 import os #/// Interact with OS
2 import errno
3 
4 #///////////////////////////////////////////////////////////////////////////////
5 # User Configuration
6 WEB_PATH = '/nusoft/app/web/htdoc/nova/blessedplots/'
7 JSON_FILENAME = 'BlessedPlotsMeta.json'
8 PLOT_SUBDIR = 'plots/'
9 BLESSED_PLOTS = './BlessedPlots.json'
10 DOCDB_URL = 'http://nova-docdb.fnal.gov:8080/cgi-bin/'
11 REGENERATE = False
12 PWD = open(os.environ['NOVADOCPWDFILE'], 'r').readlines()[0].strip()
13 
14 # Is this the proposed-only page or the official-only page?
15 PROPOSED = False
16 
17 EXTS = ['.txt', '.png', '.jpg', '.jpeg', '.gif', '.pdf', '.eps', '.ps', '.C', '.tar.gz', '.zip']
18 
19 # mkdir -p WEB_PATH/PLOT_SUBDIR
20 # Easier with python >= 3.2, but I don't have that
21 try:
22  os.makedirs(WEB_PATH + PLOT_SUBDIR)
23 except OSError, exc:
24  if exc.errno == errno.EEXIST and os.path.isdir(WEB_PATH + PLOT_SUBDIR):
25  pass
26  else:
27  raise
procfile open("FD_BRL_v0.txt")