Exemplo n.º 1
0
def main_server():
    
    # init global variables from file config.ini 
    readConfig()
    
    # init camera_equipment_table
    read_camera_equipment()
    
    fileWatcher.watchFileChange(DIRECTORY_PATH, handle_change)
    return
Exemplo n.º 2
0
def main_server():
    
    # should make sure that just one imgServer run on one machine
    if judgeRunning.program_is_running():
        print('Program is running')
        exit()
    
    # init global variables from file config.ini 
    globalConfig.readConfig()
    
    # init roadgps
    readRoadGPS.initRoadInfo()
    
    # start road info demon
    t = threading.Thread(target=readRoadGPS.roadInfoDaemon)
    t.start()
    
    # init camera_equipment_table
    readCameraEquip.read_camera_equipment()
    
    fileWatcher.watchFileChange(fileWatcher.DIRECTORY_PATH, handle_change)
    return
Exemplo n.º 3
0
def main_server():

    # should make sure that just one imgServer run on one machine
    if judgeRunning.program_is_running():
        print('Program is running')
        exit()

    # init global variables from file config.ini
    globalConfig.readConfig()

    # init roadgps
    readRoadGPS.initRoadInfo()

    # start road info demon
    t = threading.Thread(target=readRoadGPS.roadInfoDaemon)
    t.start()

    # init camera_equipment_table
    readCameraEquip.read_camera_equipment()

    fileWatcher.watchFileChange(fileWatcher.DIRECTORY_PATH, handle_change)
    return