示例#1
0
import dissect
from dissect.consolidation.util.entity_to_json import EntityToJson

def handle(entity):
    print('%s\n\n---\n\n' % EntityToJson().convert(entity, 'id_'))

dissect.run('./test/system/data/one/main.py', handle)
示例#2
0
 def run(self, file_path):
     dissect.run(file_path, self.on_entity)
示例#3
0
文件: when.py 项目: qdamian/dissect
def step_impl(context):
    context.entities = []
    dissect.run(context.program_path, context.entities.append)