Lines 158-164
def _get_deployment_config_file():
Link Here
|
158 |
return os.path.abspath(path) |
158 |
return os.path.abspath(path) |
159 |
|
159 |
|
160 |
|
160 |
|
161 |
def load_paste_app(app_name=None): |
161 |
def load_paste_app(app_name): |
162 |
""" |
162 |
""" |
163 |
Builds and returns a WSGI app from a paste config file. |
163 |
Builds and returns a WSGI app from a paste config file. |
164 |
|
164 |
|
Lines 170-178
def load_paste_app(app_name=None):
Link Here
|
170 |
:raises RuntimeError when config file cannot be located or application |
170 |
:raises RuntimeError when config file cannot be located or application |
171 |
cannot be loaded from config file |
171 |
cannot be loaded from config file |
172 |
""" |
172 |
""" |
173 |
if app_name is None: |
|
|
174 |
app_name = CONF.prog |
175 |
|
176 |
# append the deployment flavor to the application name, |
173 |
# append the deployment flavor to the application name, |
177 |
# in order to identify the appropriate paste pipeline |
174 |
# in order to identify the appropriate paste pipeline |
178 |
app_name += _get_deployment_flavor() |
175 |
app_name += _get_deployment_flavor() |
179 |
- |
|
|