summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorplafosse <peter.a.lafosse@gmail.com>2016-09-25 08:05:56 -0400
committerGitHub <noreply@github.com>2016-09-25 08:05:56 -0400
commit4598adb7ae961e69fb6ed3e594c0244c49eef511 (patch)
treec8240022506d22dbaba1db2d733b8fb661acb88b /python
parent81219f33feb70b75909b554fc4a276cd42337ed8 (diff)
parent5b48899a27915a16abf11aa9e0f6ec727c28736a (diff)
Merge pull request #497 from chemberger/patch-1
Update export-svg.py path splitting
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..67b6072c 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.split(bv.file.filename)[1]
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)