
    -.f,                     *    d dl Z dZ G d d      Zd Zy)    N)product_nameproduct_version
sys_vendorbios_versionbios_vendor	bios_date
board_nameboard_vendorc                       e Zd Zd Zd Zy)	QuirkInfoc                 H    d| _         i j                  t        d      | _        y )Nz/sys )sys_dirfromkeysdmi_keys_quirk_info)selfs    2/usr/lib/python3/dist-packages/Quirks/quirkinfo.py__init__zQuirkInfo.__init__   s    ;;x4    c           
      T   | j                   j                         D ]d  }	 t        t        j                  j                  | j                  ddd|            j                         j                         }|| j                   |<   f | j                   S # t        t        t        f$ r d}Y 5w xY w)zReturn all the dmi info of the system hardware.

        Some or the whole Dmi info may not be available on
        some systems.

        The default implementation queries sysfs.
        classdmiidr   )r   keysopenospathjoinr   readstripOSErrorIOErrorUnicodeDecodeError)r   itemvalues      r   get_dmi_infozQuirkInfo.get_dmi_info#   s     $$))+ 	+DRWW\\$,,UD$0 115  &+DT"	+ 	 W&89 s   ABB'&B'N)__name__
__module____qualname__r   r'    r   r   r   r      s    5 r   r   c                  J    t               } t        | j                                y)Nr   )r   printr'   )as    r   mainr/   6   s    A	!..
r   )r   r   r   r/   r+   r   r   <module>r0      s    . 
+
   0r   