summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-04-22 02:01:14 -0400
committerJordan Wiens <jordan@psifertex.com>2020-04-22 02:01:14 -0400
commit3af08665bcb0de3dcfdb31bc14e8bcdc7eddd664 (patch)
tree92f3c83ca6ca5fe237e6ccbd2bbfd29ac9e3eb1d
parent1e1f04aa38f41667910565906504c8bbc32ccc83 (diff)
fix export-svg example opening on windows
-rwxr-xr-xpython/examples/export_svg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/examples/export_svg.py b/python/examples/export_svg.py
index 1e35d034..e8576d82 100755
--- a/python/examples/export_svg.py
+++ b/python/examples/export_svg.py
@@ -42,6 +42,8 @@ def save_svg(bv, function):
path, 'binaryninja-{filename}-{function}.html'.format(filename=origname, function=address))
outputfile = get_save_filename_input(
'File name for export_svg', 'HTML files (*.html)', filename)
+ if sys.platfirm == "win32":
+ outputfile = outputfile.replace('/', '\\')
if outputfile is None:
return
content = render_svg(function, origname)