Merge pull request #1900 from bostrick/devel

protect PluginLoader._extra_dirs from appending None
pull/1901/head
Daniel Hokka Zakrisson 12 years ago
commit 51180fa344

@ -70,6 +70,7 @@ class PluginLoader(object):
def add_directory(self, directory): def add_directory(self, directory):
"""Adds an additional directory to the search path""" """Adds an additional directory to the search path"""
if directory is not None:
self._extra_dirs.append(directory) self._extra_dirs.append(directory)
def print_paths(self): def print_paths(self):

Loading…
Cancel
Save