canfestival/canfestival.py
changeset 2442 b13f021c68a5
parent 2437 105c20fdeb19
child 2736 a81b72ef156c
equal deleted inserted replaced
2441:c553769a65af 2442:b13f021c68a5
   615         res = [(cf_main_path, local_canfestival_config.getCFLAGS(CanFestivalPath))], local_canfestival_config.getLDFLAGS(CanFestivalPath), True
   615         res = [(cf_main_path, local_canfestival_config.getCFLAGS(CanFestivalPath))], local_canfestival_config.getLDFLAGS(CanFestivalPath), True
   616 
   616 
   617         if can_driver is not None:
   617         if can_driver is not None:
   618             can_driver_path = os.path.join(CanFestivalPath, "drivers", can_driver, can_driver_name)
   618             can_driver_path = os.path.join(CanFestivalPath, "drivers", can_driver, can_driver_name)
   619             if os.path.exists(can_driver_path):
   619             if os.path.exists(can_driver_path):
   620                 res += ((can_driver_name, file(can_driver_path, "rb")),)
   620                 res += ((can_driver_name, open(can_driver_path, "rb")),)
   621 
   621 
   622         return res
   622         return res