import sys import os import time import datetime import hashlib try: import simplejson as json except ImportError as ex: import json import aiding gevented = False logger = aiding.getLogger(name="Bottle") # Halite package directory HALITE_DIR_PATH = os.path.dirname(os.path.abspath(__file__)) # Web application specific static files STATIC_APP_PATH = os.path.join(HALITE_DIR_PATH, 'app') # Third party static web libraries STATIC_LIB_PATH = os.path.join(HALITE_DIR_PATH, 'lib') # Main templates directory MOLD_DIR_PATH = os.path.join(HALITE_DIR_PATH, 'mold') def loadWebUI(app, devel=False, coffee=False): ''' Load endpoints for bottle app'''
#!/usr/bin/env python ''' A small script to run a template through Jinja and write the result to the filesystem ''' import optparse import os import sys import jinja2 import aiding logger = aiding.getLogger(name=__file__) def parse_args(): ''' Process command line args ''' levels = aiding.LOGGING_LEVELS #map of strings to logging levels p = optparse.OptionParser(description=__doc__) p.add_option('-l', '--level', action='store', default='info', choices=levels.keys(), help="Logging level.") p.add_option('-d', '--devel',
#!/usr/bin/env python ''' A small script to run a template through Jinja and write the result to the filesystem ''' import optparse import os import sys import jinja2 import aiding logger = aiding.getLogger(name=__file__) def parse_args(): ''' Process command line args ''' levels = aiding.LOGGING_LEVELS #map of strings to logging levels p = optparse.OptionParser(description=__doc__) p.add_option('-l', '--level', action='store', default='info', choices=levels.keys(), help="Logging level.") p.add_option('-d', '--devel', action='store_true', default=False, help="Development mode.")
import sys import os import time import datetime import hashlib try: import simplejson as json except ImportError as ex: import json import aiding gevented = False logger = aiding.getLogger(name="Bottle") # Halite package directory HALITE_DIR_PATH = os.path.dirname(os.path.abspath(__file__)) # Web application specific static files STATIC_APP_PATH = os.path.join(HALITE_DIR_PATH, 'lattice/app') # Third party static web libraries STATIC_LIB_PATH = os.path.join(HALITE_DIR_PATH, 'lattice/lib') # Main templates directory MOLD_DIR_PATH = os.path.join(HALITE_DIR_PATH, 'mold') def loadWebUI(app, devel=False, coffee=False): ''' Load endpoints for bottle app'''