diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5cd5f17..d0d4d8a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Change log ================================================================================ +0.6.7 - unreleased +-------------------------------------------------------------------------------- + +#. `#115 `_: Pathnames with + "." cause file_name error in get_writer. + 0.6.6 - 31.1.2022 -------------------------------------------------------------------------------- diff --git a/pyexcel_io/writers/csv_sheet.py b/pyexcel_io/writers/csv_sheet.py index 422dbed..d2a2db0 100644 --- a/pyexcel_io/writers/csv_sheet.py +++ b/pyexcel_io/writers/csv_sheet.py @@ -47,7 +47,7 @@ def __init__( def get_writer(self): if self._sheet_name != constants.DEFAULT_SHEET_NAME: - names = self._native_book.split(".") + names = self._native_book.rsplit(".", 1) file_name = "%s%s%s%s%s.%s" % ( names[0], constants.DEFAULT_MULTI_CSV_SEPARATOR,