# Path: pyilper/pilcore.py
# def isWINDOWS():
#    return platform.system()=="Windows"


import os
from .lifcore import *
from .pilcore import isWINDOWS
      elif ft== 0xE0FE or ft==0xE088:
         t=get_finfo_type(ft)[0]
         l= getLifInt(e,16,4)*256
#     HP-75 ROM
      elif ft== 0xE08B:
         t=get_finfo_type(ft)[0]
         l= getLifInt(e,16,4)*256
#     other ...
      else:
         t= "0x{:4X}".format(ft)
         l= getLifInt(e,16,4)* 256
      return [t , l]

      

class cls_LifFile:

   def __init__(self):
      self.filename= None           # Name of LIF File
      self.filehd= None             # File descriptor
      self.isWindows=False          # platform idicator for i/o
      self.isLifFile= False         # Valid lif file
      self.buffer= bytearray(256)   # read write buffer
      self.header= bytearray(256)   # lif header
      self.label = None
      self.dir_start=0
      self.dir_length=0
      self.no_tracks=0
      self.no_surfaces=0
      self.no_blocks=0

# Path: pyilper/pilcore.py
# def isWINDOWS():
#    return platform.system()=="Windows"


# Path: pyilper/lifutils.py
import os
from .lifcore import *
from .pilcore import isWINDOWS

      elif ft== 0xE0FE or ft==0xE088:
         t=get_finfo_type(ft)[0]
         l= getLifInt(e,16,4)*256
#     HP-75 ROM
      elif ft== 0xE08B:
         t=get_finfo_type(ft)[0]
         l= getLifInt(e,16,4)*256
#     other ...
      else:
         t= "0x{:4X}".format(ft)
         l= getLifInt(e,16,4)* 256
      return [t , l]

      

class cls_LifFile:

   def __init__(self):
      self.filename= None           # Name of LIF File
      self.filehd= None             # File descriptor
      self.isWindows=False          # platform idicator for i/o
      self.isLifFile= False         # Valid lif file
      self.buffer= bytearray(256)   # read write buffer
      self.header= bytearray(256)   # lif header
      self.label = None
      self.dir_start=0
      self.dir_length=0
      self.no_tracks=0
      self.no_surfaces=0
      self.no_blocks=0

      if isWINDOWS():