Ejemplo n.º 1
0
def context(*args, **kwds):
    drive.setup_shared_memory()
    drive.setup_opencv()
    try:
        yield None
    finally:
        drive.close_shared_memory()
        drive.close_opencv()
Ejemplo n.º 2
0
def context(*args, **kwds):
    drive.setup_shared_memory()
    drive.setup_opencv()
    driving_log = open(log_name, 'a')
    try:
        yield driving_log
    finally:
        drive.close_shared_memory()
        drive.close_opencv()
        driving_log.close()