Ticket #48107: patch-pyvisa-legacy-visa.py.diff

File patch-pyvisa-legacy-visa.py.diff, 414 bytes (added by joshuacookebarnes@…, 9 years ago)

This one I'm less sure about - quiets broken atexit function, but not sure if it's a legit solution

  • pyvisa/legacy/visa.py

    old new  
    180180
    181181def _destroy_resource_manager(closefun=vpp43.close):
    182182    # delete self-reference for clean finishing
    183     closefun(resource_manager.vi)
     183    if resource_manager is not None:
     184        closefun(resource_manager.vi)
    184185
    185186
    186187atexit.register(_destroy_resource_manager)