root / pithos / settings.py @ 390c7730
History | View | Annotate | Download (1.7 kB)
1 | 390c7730 | Giorgos Verigakis | # Copyright 2011 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | 390c7730 | Giorgos Verigakis | #
|
3 | 390c7730 | Giorgos Verigakis | # Redistribution and use in source and binary forms, with or
|
4 | 390c7730 | Giorgos Verigakis | # without modification, are permitted provided that the following
|
5 | 390c7730 | Giorgos Verigakis | # conditions are met:
|
6 | 390c7730 | Giorgos Verigakis | #
|
7 | 390c7730 | Giorgos Verigakis | # 1. Redistributions of source code must retain the above
|
8 | 390c7730 | Giorgos Verigakis | # copyright notice, this list of conditions and the following
|
9 | 390c7730 | Giorgos Verigakis | # disclaimer.
|
10 | 390c7730 | Giorgos Verigakis | #
|
11 | 390c7730 | Giorgos Verigakis | # 2. Redistributions in binary form must reproduce the above
|
12 | 390c7730 | Giorgos Verigakis | # copyright notice, this list of conditions and the following
|
13 | 390c7730 | Giorgos Verigakis | # disclaimer in the documentation and/or other materials
|
14 | 390c7730 | Giorgos Verigakis | # provided with the distribution.
|
15 | 390c7730 | Giorgos Verigakis | #
|
16 | 390c7730 | Giorgos Verigakis | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | 390c7730 | Giorgos Verigakis | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | 390c7730 | Giorgos Verigakis | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | 390c7730 | Giorgos Verigakis | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | 390c7730 | Giorgos Verigakis | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | 390c7730 | Giorgos Verigakis | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | 390c7730 | Giorgos Verigakis | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | 390c7730 | Giorgos Verigakis | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | 390c7730 | Giorgos Verigakis | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | 390c7730 | Giorgos Verigakis | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | 390c7730 | Giorgos Verigakis | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | 390c7730 | Giorgos Verigakis | # POSSIBILITY OF SUCH DAMAGE.
|
28 | 390c7730 | Giorgos Verigakis | #
|
29 | 390c7730 | Giorgos Verigakis | # The views and conclusions contained in the software and
|
30 | 390c7730 | Giorgos Verigakis | # documentation are those of the authors and should not be
|
31 | 390c7730 | Giorgos Verigakis | # interpreted as representing official policies, either expressed
|
32 | 390c7730 | Giorgos Verigakis | # or implied, of GRNET S.A.
|
33 | 390c7730 | Giorgos Verigakis | |
34 | 390c7730 | Giorgos Verigakis | from glob import glob |
35 | 390c7730 | Giorgos Verigakis | from os.path import abspath, dirname, join |
36 | 390c7730 | Giorgos Verigakis | |
37 | 390c7730 | Giorgos Verigakis | |
38 | 390c7730 | Giorgos Verigakis | PROJECT_PATH = dirname(abspath(__file__)) |
39 | 390c7730 | Giorgos Verigakis | |
40 | 390c7730 | Giorgos Verigakis | |
41 | 390c7730 | Giorgos Verigakis | conffiles = glob(join(PROJECT_PATH, 'settings.d', '*.conf')) |
42 | 390c7730 | Giorgos Verigakis | |
43 | 390c7730 | Giorgos Verigakis | for conf in sorted(conffiles): |
44 | 390c7730 | Giorgos Verigakis | execfile(conf) |