Force xlsm files to open with pyexcel-xlsx

`.xlsm` files are like `.xlxs` files but with macros enabled. They store
data in the same XML-based format as `.xlsx` files.

Pyexcel will try to use the xlrd package to parse `.xlsm` files. This
used to work because xlrd used to support reading `.xlsx` files. xlrd
has dropped support for `.xlsx` files in version 2 because of security
concerns. This means that when pyexcel asks xlrd to parse a `.xlsm` file
it causes an error.

This commit adds some branching to force `.xlsm` files to be opened
with pyexcel-xlsx instead, which does support `.xlsx` files.
This commit is contained in:
Chris Hill-Scott
2022-05-12 15:48:09 +01:00
parent ded87706c7
commit 80854ab2cc
3 changed files with 12 additions and 2 deletions

Binary file not shown.