You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cms/index.py

254 lines
7.6 KiB
Python

2 years ago
__doc__ = """
arguments :
--config path of the configuration otherwise it will look for the default in the working directory
"""
from flask import Flask,render_template,send_from_directory,request
import flask
import transport
from transport import providers
import cms
import sys
import os
import json
import copy
_system = cms.components.get_system(_config) #copy.deepcopy(_config['system'])
2 years ago
_uri = os.sep.join([_config['layout']['root'],request.headers['uri']])
_args['config'] = copy.deepcopy(_config)
10 months ago
if __name__ == '__main__' :