Skip to content

Commit 3af0866

Browse files
committed
fix export-svg example opening on windows
1 parent 1e1f04a commit 3af0866

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/examples/export_svg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def save_svg(bv, function):
4242
path, 'binaryninja-{filename}-{function}.html'.format(filename=origname, function=address))
4343
outputfile = get_save_filename_input(
4444
'File name for export_svg', 'HTML files (*.html)', filename)
45+
if sys.platfirm == "win32":
46+
outputfile = outputfile.replace('/', '\\')
4547
if outputfile is None:
4648
return
4749
content = render_svg(function, origname)

0 commit comments

Comments
 (0)