From 7a6ca6eb2b109f81f0d18ba4b7526d71e80467c9 Mon Sep 17 00:00:00 2001 From: Shaheed Haque Date: Thu, 7 Mar 2024 18:04:01 +0000 Subject: [PATCH] Correctly handle filenames that contain "." prior to the extension. Resolves #115. --- pyexcel_io/writers/csv_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,