diff options
Diffstat (limited to 'python/examples')
| -rwxr-xr-x | python/examples/export-svg.py | 2 | ||||
| -rw-r--r-- | python/examples/version-switcher.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/export-svg.py b/python/examples/export-svg.py index 3800edf7..02a6d57e 100755 --- a/python/examples/export-svg.py +++ b/python/examples/export-svg.py @@ -14,7 +14,7 @@ def escape(string): return ''.join(escape_table.get(i,i) for i in string) #still escape the basics def save_svg(bv,function): - filename = bv.file.filename.split(os.sep)[-1] + filename = os.path.basename(bv.file.filename) address = hex(function.start).replace('L','') outputfile = os.path.join(os.path.expanduser('~'), 'binaryninja-{filename}-{function}.html'.format(filename=filename,function=address)) content = render_svg(function) diff --git a/python/examples/version-switcher.py b/python/examples/version-switcher.py index a1936a52..087bf7f9 100644 --- a/python/examples/version-switcher.py +++ b/python/examples/version-switcher.py @@ -3,7 +3,7 @@ import sys import binaryninja import datetime -chandefault="private-beta" +chandefault="release" channel=0 versions=0 |
