(data)
| 81 | } |
| 82 | |
| 83 | def GetHostFeatures(data): |
| 84 | HostFeaturesData = HostFeatures.FEATURE_ANY |
| 85 | if not (type(data) is list): |
| 86 | sys.exit("Features value must be list of features") |
| 87 | |
| 88 | for data_key in data: |
| 89 | data_key = data_key.upper() |
| 90 | if not (data_key in HostFeaturesLookup): |
| 91 | sys.exit("Invalid host feature") |
| 92 | |
| 93 | HostFeaturesData |= HostFeaturesLookup[data_key] |
| 94 | return HostFeaturesData |
| 95 | |
| 96 | def parse_json_data(json_filepath, json_filename, json_data, output_binary_path): |
| 97 | Bitness = 64 |