def get_jsondoc_basepath(): return os.path.join( Application.getUserCacheDirectory().getAbsolutePath(), 'GhidraAPI_javadoc', Application.getApplicationVersion(), 'api', )
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)