# Path: lib/constants.py
# YAML_FILE = '.yaml'


    import holidays
import datetime
import dateutil
import pytz
import dateutil.relativedelta
import json
import logging
import os
import lib.shyaml as shyaml
            import inspect
from dateutil.tz import tzlocal
from dateutil import parser
from lib.constants import (YAML_FILE)
from lib.translation import translate as lib_translate
        :param to_date: Last date to add
        :param holiday_name: Name of the holidays
        :type from_date: str|datetime.datetime|datetime.date|int|float
        :type to_date: str|datetime.datetime|datetime.date|int|float
        :type holiday_name: str
        """
        from_date = self.date_transform(from_date)
        if to_date is None:
            to_date = from_date
        else:
            to_date = self.date_transform(to_date)

        num_days = (to_date-from_date).days + 1
        holiday_list = [from_date+datetime.timedelta(days=x) for x in range(num_days)]

        cust_dict = {}
        for holiday in holiday_list:
            cust_dict[holiday] = holiday_name
        self.holidays.append(cust_dict)
        return

# {"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}

    def _initialize_holidays(self):
        """
        Initialize the holidays according to etc/holidays.yaml for the current year and the two years to come
        """

        if self.holidays is None:
            self._etc_dir = self._sh._etc_dir

# Path: lib/constants.py
# YAML_FILE = '.yaml'


# Path: lib/shtime.py
    import holidays
import datetime
import dateutil
import pytz
import dateutil.relativedelta
import json
import logging
import os
import lib.shyaml as shyaml
            import inspect
from dateutil.tz import tzlocal
from dateutil import parser
from lib.constants import (YAML_FILE)
from lib.translation import translate as lib_translate

        :param to_date: Last date to add
        :param holiday_name: Name of the holidays
        :type from_date: str|datetime.datetime|datetime.date|int|float
        :type to_date: str|datetime.datetime|datetime.date|int|float
        :type holiday_name: str
        """
        from_date = self.date_transform(from_date)
        if to_date is None:
            to_date = from_date
        else:
            to_date = self.date_transform(to_date)

        num_days = (to_date-from_date).days + 1
        holiday_list = [from_date+datetime.timedelta(days=x) for x in range(num_days)]

        cust_dict = {}
        for holiday in holiday_list:
            cust_dict[holiday] = holiday_name
        self.holidays.append(cust_dict)
        return

# {"dow": 5, "dow_week": "last", "month": 7, "name": "Sysadmin day"}

    def _initialize_holidays(self):
        """
        Initialize the holidays according to etc/holidays.yaml for the current year and the two years to come
        """

        if self.holidays is None:
            self._etc_dir = self._sh._etc_dir

            conf_filename = os.path.join(self._sh._etc_dir, 'holidays'+YAML_FILE)