MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / load_channel

Function load_channel

python/examples/version_switcher.py:34–47  ·  view source on GitHub ↗
(newchannel)

Source from the content-addressed store, hash-verified

32
33
34def load_channel(newchannel):
35 global channel
36 global versions
37 if (channel is not None and newchannel == channel.name):
38 print("Same channel, not updating.")
39 else:
40 try:
41 print("Loading channel %s" % newchannel)
42 channel = UpdateChannel[newchannel]
43 print("Loading versions...")
44 versions = channel.versions
45 except Exception:
46 print("%s is not a valid channel name. Defaulting to " % chandefault)
47 channel = UpdateChannel[chandefault]
48
49
50def select(version):

Callers 2

list_channelsFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected