summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-08-24 16:43:33 -0400
committerJordan Wiens <jordan@psifertex.com>2016-08-24 16:43:33 -0400
commit3c19753e3ec474d4c84110b9e6ab8ef1f1971fe2 (patch)
treee2d9da8336e46425be333cf1273bb23487fd523c /python
parentc3693b77c1fa9c1b5c45483045eeab929cf7bd16 (diff)
fix export to work on windows
Diffstat (limited to 'python')
-rwxr-xr-xpython/examples/export-svg.py2
1 files changed, 1 insertions, 1 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)