I am trying to read an excel workbook and running into a windows path error. I have tried os and pathlib. The codes shows different variations.
def main():
infilename = ('c:\Testing\Python\EET_Report.xlxs')
tried infilename = pathlib.Path('c:/Testing/Python/EET_Report.xlxs')
tried infilename = pathlib.PureWindowsPath('c:/Testing/Python/EET_Report.xlxs')
# open file
inwb = xlrd.open_workbook(infilename)
The error I am getting when running the program:
No such file or directory: 'c:\\Testing\\Python\\EET_Report.xlxs'