diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2018-11-26 22:47:39 -0500 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2018-11-26 22:47:39 -0500 |
| commit | 5f7f0c4624dc51e1ccc44eb839860e36490e54ce (patch) | |
| tree | 5da8bb0bc80402b1073a7016ea1ca79b46d43c5f /python/examples | |
| parent | d0fc9bbf30b0813e4f287035a207b6e40853f7c7 (diff) | |
convert core_serial, version, build_id ando thers to methods
Diffstat (limited to 'python/examples')
| -rw-r--r-- | python/examples/version_switcher.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/examples/version_switcher.py b/python/examples/version_switcher.py index cf99df5b..0270e121 100644 --- a/python/examples/version_switcher.py +++ b/python/examples/version_switcher.py @@ -72,11 +72,11 @@ def select(version): if are_auto_updates_enabled(): print("Disabling automatic updates.") set_auto_updates_enabled(False) - if (version.version == core_version): + if (version.version == core_version()): print("Already running %s" % version.version) else: print("version.version %s" % version.version) - print("core_version %s" % core_version) + print("core_version %s" % core_version()) print("Downloading...") print(version.update()) print("Installing...") @@ -121,7 +121,7 @@ def main(): while not done: print("\n\tBinary Ninja Version Switcher") print("\t\tCurrent Channel:\t%s" % channel.name) - print("\t\tCurrent Version:\t%s" % core_version) + print("\t\tCurrent Version:\t%s" % core_version()) print("\t\tAuto-Updates On:\t%s\n" % are_auto_updates_enabled()) for index, version in enumerate(versions): date = datetime.datetime.fromtimestamp(version.time).strftime('%c') |
