示例#1
0
def get_jsondoc_basepath():
    return os.path.join(
        Application.getUserCacheDirectory().getAbsolutePath(),
        'GhidraAPI_javadoc',
        Application.getApplicationVersion(),
        'api',
    )
示例#2
0
def extract_jsondoc():
    zip_location = os.path.join(
        Application.getInstallationDirectory().getAbsolutePath(),
        "docs/GhidraAPI_javadoc.zip")
    extract_dir = os.path.join(
        Application.getUserCacheDirectory().getAbsolutePath(),
        'GhidraAPI_javadoc', Application.getApplicationVersion())

    zip_file = zipfile.ZipFile(zip_location)
    zip_file.extractall(extract_dir)