Skip to content

Ignore case with data file extensions #239

Description

@flipvis

extension = os.path.splitext(data_file)[1]

This way of determining data file extension is case-sensitive. Meaning that datafile.CSV doesn't get processed at all. This also doesn't raise an error. Only indication that this has happened is a line in the log:
ScribusGenerator - INFO: Source document consumes 1 data record(s) from 0.

A quick fix could be adding a .lower()

extension = os.path.splitext(data_file)[1] .lower()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions