Skip to content

Commit 8ac5f52

Browse files
author
Ladislav CABELKA
committed
cm: added config .local files processing
1 parent cb50768 commit 8ac5f52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pulse2/services/pulse2/cm/_config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
""" Declaration of config defaults """
2424

25+
import os
2526
import inspect
2627
from ConfigParser import RawConfigParser
2728

@@ -181,6 +182,10 @@ def read(self, filename):
181182

182183
config_file = ExtendedConfigParser()
183184
config_file.read(filename)
185+
filename_local = "%s.local" % filename
186+
if os.path.exists(filename_local):
187+
config_file.read(filename_local)
188+
184189

185190
for section_name in config_file.sections():
186191
if hasattr(self, section_name):

0 commit comments

Comments
 (0)