def get_requirements(rel_file_path):
    file_path = os.path.join(ROOT, rel_file_path)
    data = file_to_dict(file_path)
    if data is False:
        print('get_requirements failed')
        return []
    return [pkg['install'] for pkg in data if pkg['active'] and pkg['install']]
Ejemplo n.º 2
0
def get_requirements(rel_file_path):
    file_path = os.path.join(ROOT, rel_file_path)
    data = file_to_dict(file_path)
    if data is False:
        print('get_requirements failed')
        return []
    return [pkg['install'] for pkg in data
            if pkg['active'] and pkg['install']]
Ejemplo n.º 3
0
def get_requirements(rel_file_path):
    file_path = os.path.join(ROOT, rel_file_path)
    data = [pkg['install'] for pkg in file_to_dict(file_path) if pkg['active'] and pkg['install']]
    return data