HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //usr/local/packages/@appstore/ActiveInsight/collectors/util.py
def read_file(filepath):
    with open(filepath, "r") as f:
        return f.read()


def get_file_key(path, key):
    data = read_file(path).split()
    for pair in data:
        key_value = pair.split('=')
        if key_value[0] == key:
            return key_value[1].strip('\"')
    return ''