8000 Correctly handle filenames that contain "." prior to the extension. · pyexcel/pyexcel-io@7a6ca6e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a6ca6e

Browse files
committed
Correctly handle filenames that contain "." prior to the extension.
Resolves #115.
1 parent 1caf894 commit 7a6ca6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyexcel_io/writers/csv_sheet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747

4848
def get_writer(self):
4949
if self._sheet_name != constants.DEFAULT_SHEET_NAME:
50-
names = self._native_book.split(".")
50+
names = self._native_book.rsplit(".", 1)
5151
file_name = "%s%s%s%s%s.%s" % (
5252
names[0],
5353
constants.DEFAULT_MULTI_CSV_SEPARATOR,

0 commit comments

Comments
 (0)
0