def _setup_install_dir(env):
    """Sets up install dir and ensures its owned by Galaxy"""
    if not env.safe_exists(env.galaxy_tools_dir):
        env.safe_sudo(env.galaxy_tools_dir % "mkdir -p %s")
        _chown_galaxy(env, env.galaxy_tools_dir)
    # Create a general-purpose ``bin`` directory under the galaxy_tools_dir
    # and put it on the PATH so users can more easily add custom tools
    bin_dir = os.path.join(env.galaxy_tools_dir, 'bin')
    if not env.safe_exists(bin_dir):
        env.safe_sudo("mkdir -p %s" % bin_dir)
        _chown_galaxy(env, bin_dir)
        line = "export PATH={0}:$PATH".format(bin_dir)
        _add_to_profiles(line)
    if not env.safe_exists(env.galaxy_jars_dir):
        env.safe_sudo("mkdir -p %s" % env.galaxy_jars_dir)
        _chown_galaxy(env, env.galaxy_jars_dir)
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/galaxy/tools.py/_setup_install_dir/swapped operands of `%`