in memory_analyzer/analysis_utils.py [0:0]
def __init__(self, pid, current_path, executable, template_out_path):
"""
Args:
pid: numeric pid of the target
current_path: the directory containing gdb_commands.py
executable: the binary passed as the first arg to gdb
template_out_path: the location that analysis.py rendered templates
end up in.
"""
self.pid = pid
self.fifo = f"/tmp/memanz_pipe_{self.pid}"
self.current_path = current_path
# These should all be the same, so safe for threads.
os.putenv("MEMORY_ANALYZER_TEMPLATES_PATH", template_out_path)
self.executable = executable