fix issue with filenames with no directory causing error

pull/170/head
Andrew Port 2021-11-26 18:23:07 -08:00
parent 8ad7458b31
commit d1421d6286
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ def disvg(paths=None, colors=None, filename=None, stroke_widths=None,
# append time stamp to filename
if timestamp:
fbname, fext = os_path.splitext(filename)
dirname = os_path.dirname(filename)
dirname = os_path.abspath(os_path.dirname(filename))
tstamp = str(time()).replace('.', '')
stfilename = os_path.split(fbname)[1] + '_' + tstamp + fext
filename = os_path.join(dirname, stfilename)