def enable_plugin(plugin_name):
if isinstance(plugin_name, (str,)):<EOL><INDENT>plugin_name = [plugin_name]<EOL>singleton = True<EOL><DEDENT>else:<EOL><INDENT>singleton = False<EOL><DEDENT>shared_available_path = MICRODROP_CONDA_SHARE.joinpath('<STR_LIT>',<EOL>'<STR_LIT>')<EOL>etc_available_path = MICRODROP_CONDA_ETC.joinpath('<STR_LIT>', '<STR_LIT>')<EOL>available_paths = (etc_available_path, shared_available_path)<EOL>plugin_paths = []<EOL>for name_i in plugin_name:<EOL><INDENT>for available_path_j in available_paths:<EOL><INDENT>plugin_path_ij = available_path_j.joinpath(name_i)<EOL>if not _islinklike(plugin_path_ij) and plugin_path_ij.isdir():<EOL><INDENT>logger.debug('<STR_LIT>', plugin_path_ij)<EOL>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise IOError('<STR_LIT>'<EOL>.format(name_i, *available_paths))<EOL><DEDENT>plugin_paths.append(plugin_path_ij)<EOL><DEDENT>enabled_path = MICRODROP_CONDA_PLUGINS.joinpath('<STR_LIT>')<EOL>enabled_path.makedirs_p()<EOL>enabled_now = {}<EOL>for plugin_path_i in plugin_paths:<EOL><INDENT>plugin_link_path_i = enabled_path.joinpath(plugin_path_i.name)<EOL>if not plugin_link_path_i.exists():<EOL><INDENT>if platform.system() == '<STR_LIT>':<EOL><INDENT>plugin_path_i.junction(plugin_link_path_i)<EOL><DEDENT>else:<EOL><INDENT>plugin_path_i.symlink(plugin_link_path_i)<EOL><DEDENT>logger.debug('<STR_LIT>',<EOL>plugin_path_i, plugin_link_path_i)<EOL>enabled_now[plugin_path_i.name] = True<EOL><DEDENT>else:<EOL><INDENT>logger.debug('<STR_LIT>', plugin_path_i,<EOL>plugin_link_path_i)<EOL>enabled_now[plugin_path_i.name] = False<EOL><DEDENT><DEDENT>return enabled_now if not singleton else list(enabled_now.values())[<NUM_LIT:0>]<EOL>
Enable installed plugin package(s).

Each plugin package must have a directory with the same name as the package
in the following directory:

    <conda prefix>/share/microdrop/plugins/available/

Parameters
----------
plugin_name : str or list
    Plugin package(s) to enable.

Returns
-------
dict
    Dictionary containing a flag for each plugin name:

     - ``False`` iff the plugin was already enabled.
     - ``True`` iff it was just enabled now.

Raises
------
IOError
    If plugin is not installed to ``<conda prefix>/share/microdrop/plugins/available/``.