diff options
| author | plafosse <peter.a.lafosse@gmail.com> | 2016-09-25 08:05:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-25 08:05:56 -0400 |
| commit | 4598adb7ae961e69fb6ed3e594c0244c49eef511 (patch) | |
| tree | c8240022506d22dbaba1db2d733b8fb661acb88b /python/examples | |
| parent | 81219f33feb70b75909b554fc4a276cd42337ed8 (diff) | |
| parent | 5b48899a27915a16abf11aa9e0f6ec727c28736a (diff) | |
Merge pull request #497 from chemberger/patch-1
Update export-svg.py path splitting
Diffstat (limited to 'python/examples')
| -rwxr-xr-x | python/examples/export-svg.py | 2 |
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) |
