telegram_avatar/open_weather_map_api.py
def _weather_image_exists(self, image_name: str) -> bool:
        """
        Check if weather image icon is exists in folder.
        Args:
            image_name: name of image (w/o extension).
        Returns:
            True if image is exist, else False.
        """
        img_path = os.path.join(
            os.getcwd(),
            WEATHER_ICONS_FOLDER_NAME,
            image_name + ".png",
        )
        exists = os.path.exists(img_path)
        self._logger.info(f"Image with name {image_name} existing: {exists}")
        return exists

        Check if weather image icon is exists in folder.
        Args:
            image_name: name of image (w/o extension).
        Returns:
            True if image is exist, else False.
        
Check if weather image icon is exists in folder.
Check if weather image icon is exists in folder .
def _weather_image_exists(self, image_name: str) -> bool:
        img_path = os.path.join(
            os.getcwd(),
            WEATHER_ICONS_FOLDER_NAME,
            image_name + ".png",
        )
        exists = os.path.exists(img_path)
        self._logger.info(f"Image with name {image_name} existing: {exists}")
        return exists
def _weather_image_exists ( self , image_name : str ) -> bool : img_path = os . path . join ( os . getcwd ( ) , WEATHER_ICONS_FOLDER_NAME , image_name + ".png" , ) exists = os . path . exists ( img_path ) self . _logger . info ( f"Image with name {image_name} existing: {exists}" ) return exists
Check if weather image icon is exists in folder.
Check if weather image icon is exists in folder .
"""
        Check if weather image icon is exists in folder.
        Args:
            image_name: name of image (w/o extension).
        Returns:
            True if image is exist, else False.
        """
True if image is exist, else False.
True if image is exist else False .
self
image_name
str
name of image (w/o extension).
name of image ( w / o extension ) .