예제 #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
예제 #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
예제 #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