Skip to content

Commit b097974

Browse files
authored
unsafe read method for config
1 parent dc8be06 commit b097974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/lib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, cfg_file=None, plugin_directories=[]):
7474
sys.exit(1)
7575
else:
7676
if cfg_file is not None:
77-
self.config.read(cfg_file)
77+
self.config.readfp(open(cfg_file))
7878

7979
plugins = self.fetch('plugins', 'directory', str)
8080
if not plugins == 'None':

0 commit comments

Comments
 (0)