# Path: confduino/hwpacklist.py
# def hwpack_dir():
#     """return hardware packages root path."""
#     x = arduino_path() / 'hardware'
#     assert x.exists(), x
#     return x


from confduino.hwpacklist import hwpack_dir
from entrypoint2 import entrypoint
import logging

log = logging.getLogger(__name__)


@entrypoint
def remove_hwpack(name):
    """remove hardware package.

    :param name: hardware package name (e.g. 'Sanguino')
    :rtype: None

    """

# Path: confduino/hwpacklist.py
# def hwpack_dir():
#     """return hardware packages root path."""
#     x = arduino_path() / 'hardware'
#     assert x.exists(), x
#     return x


# Path: confduino/hwpackremove.py
from confduino.hwpacklist import hwpack_dir
from entrypoint2 import entrypoint
import logging


log = logging.getLogger(__name__)


@entrypoint
def remove_hwpack(name):
    """remove hardware package.

    :param name: hardware package name (e.g. 'Sanguino')
    :rtype: None

    """

    targ_dlib = hwpack_dir() / name