Skip to content
Browse files

utils.py: fix bug about get list of enable plugins

The old way to get the list kept break-lines.
  • Loading branch information...
1 parent cee7b4c commit 7f081a9992a7860b006bb6e1db6d2d2b5fa2bc2c @Boboss74 Boboss74 committed Sep 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 gateone/utils.py
View
2 gateone/utils.py
@@ -717,7 +717,7 @@ def get_plugins(plugin_dir):
out_dict = {'js': [], 'css': [], 'py': []}
plugins_conf_path = plugin_dir + '.conf'
try:
- enabled_plugins = open(plugins_conf_path).readlines()
+ enabled_plugins = open(plugins_conf_path).read().split()
if not enabled_plugins or "*" in enabled_plugins:
logging.debug(_('Loading all plugins'))
enabled_plugins = None

0 comments on commit 7f081a9

Please sign in to comment.
Something went wrong with that request. Please try again.