From 5037fac57481136af2c11375e6fce896374cba6b Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Fri, 26 Nov 2021 18:34:58 -0800 Subject: [PATCH] fix issue with filenames with no directory causing error --- setup.py | 2 +- svgpathtools/paths2svg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1c6a456..ab6d68b 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import codecs import os -VERSION = '1.4.3' +VERSION = '1.4.4' AUTHOR_NAME = 'Andy Port' AUTHOR_EMAIL = 'AndyAPort@gmail.com' GITHUB = 'https://github.com/mathandy/svgpathtools' diff --git a/svgpathtools/paths2svg.py b/svgpathtools/paths2svg.py index d936ca0..6e9c10e 100644 --- a/svgpathtools/paths2svg.py +++ b/svgpathtools/paths2svg.py @@ -217,7 +217,7 @@ def disvg(paths=None, colors=None, filename=None, stroke_widths=None, dirname = os_path.abspath(os_path.dirname(filename)) if not os_path.exists(dirname): makedirs(dirname) - + # append time stamp to filename if timestamp: fbname, fext = os_path.splitext(filename)