~vila/uci-engine/enable-nova-and-swift

« back to all changes in this revision

Viewing changes to webui/webui/settings.py

  • Committer: Evan Dandrea
  • Date: 2014-06-30 12:07:54 UTC
  • mfrom: (630 uci-engine)
  • mto: This revision was merged to the branch mainline in revision 655.
  • Revision ID: evan.dandrea@canonical.com-20140630120754-z6x5eqdahpp2qfrt
Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
"""
10
10
 
11
11
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 
12
import glob
12
13
import os
13
14
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
14
15
 
92
93
        execfile(p)
93
94
except ImportError:
94
95
    pass
 
96
 
 
97
# If there are juju extra settings pull those in.
 
98
PROJECT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)),
 
99
                           '../../../juju/settings/')
 
100
 
 
101
conffiles = glob.glob(os.path.join(PROJECT_DIR, '*.py'))
 
102
conffiles.sort()
 
103
 
 
104
for f in conffiles:
 
105
    execfile(os.path.abspath(f))