def auto(): "runs on every paver call" loadConf(options) options.version_name=options.version.replace(".","-") + (options.debug and "-dev" or "")
import os import sys sys.path.append(os.path.dirname(__file__)) from buildconfig import loadConf config={} loadConf(config) ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) SRC_DIR = os.path.dirname(ROOT_PATH) PROJ_PATH = os.path.dirname(SRC_DIR) #Directories LAYOUT_DIR = os.path.join(SRC_DIR, 'templates') CONTENT_DIR = os.path.join(SRC_DIR, 'content') MEDIA_DIR = os.path.join(SRC_DIR, 'media') DEPLOY_DIR = os.path.join(PROJ_PATH, 'deploy') TMP_DIR = os.path.join(PROJ_PATH, 'deploy_tmp') BACKUPS_DIR = os.path.join(ROOT_PATH, 'backups') BACKUP = False SITE_ROOT = "/" SITE_NAME=config["site_name"] #Url Configuration GENERATE_ABSOLUTE_FS_URLS = False # Clean urls causes Hyde to generate urls without extensions. Examples: # http://example.com/section/page.html becomes # http://example.com/section/page/, and the listing for that section becomes # http://example.com/section/ # The built-in CherryPy webserver is capable of serving pages with clean urls