summaryrefslogtreecommitdiff
path: root/python/examples
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples')
-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)