| Index: sitescripts/utils.py |
| =================================================================== |
| --- a/sitescripts/utils.py |
| +++ b/sitescripts/utils.py |
| @@ -68,16 +68,17 @@ def get_config(): |
| # Server-wide configuration if no custom found |
| paths.append('/etc/sitescripts') |
| paths.append('/etc/sitescripts.ini') |
| for path in paths: |
| path = os.path.abspath(path) |
| if os.path.exists(path): |
| config = SafeConfigParser() |
| + config.optionxform = lambda x: x |
| config.read(path) |
| return config |
| raise Exception('No config file found. Please put sitescripts.ini into your home directory or /etc') |
| def setupStderr(stream=sys.stderr): |
| """ |
| Sets up sys.stderr to accept Unicode characters, redirects error output to |