mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
20 lines
442 B
Python
20 lines
442 B
Python
import csv
|
|
import inspect
|
|
|
|
from typing import Dict
|
|
from pathlib import Path
|
|
|
|
|
|
def __init_guids_db() -> Dict[str, str]:
|
|
"""Initialize GUIDs dictionary from a local database.
|
|
"""
|
|
|
|
csv_path = Path(inspect.getfile(__init_guids_db)).parent / 'guids.csv'
|
|
|
|
with csv_path.open('r') as guids_file:
|
|
guids_reader = csv.reader(guids_file)
|
|
|
|
return dict(tuple(entry) for entry in guids_reader)
|
|
|
|
guids_db = __init_guids_db()
|