py2.6 zipfile has no context manager
[edumed.git] / edumed / settings.py
1 import os.path
2 import glob
3
4 conffiles = glob.glob(os.path.join(
5     os.path.dirname(__file__), 'settings.d', '*.py'))
6 conffiles.sort()
7 for f in conffiles:
8     execfile(os.path.abspath(f))
9
10 try:
11     execfile(os.path.abspath(os.path.join(
12         os.path.dirname(__file__), 'localsettings.py')))
13 except IOError:
14     pass