I'm beginner - only a few months at this stuff. So... maybe something dumb. This is a GUI program with multiple modules, and the GUI works on both platforms. pathLib seems to be transforming the path as I would expect, backslashes from forward and prefixing the Windows root, C: etc, Both cases use Python v.3.9. I'm also using PyCharm on both. OS is Catalina (Mac) and Win10. The data files are cvs from Excel, UTF - 8. The data is in a folder in same directory as my source modules. Any ideas?
myfile = 'dbm.csv'
csvFileObj = Path.cwd() / 'data' / myfile
with csvFileObj as datafile:
dbx = list(csv.reader(open(datafile)))