I have this folder structure, within edi_standards.py
I want to open csv/transaction_groups.csv
But the code only works when I access it like this os.path.join('standards', 'csv', 'transaction_groups.csv')
What I think it should be is os.path.join('csv', 'transaction_groups.csv')
since both edi_standards.py
and csv/
are on the same level in the same folder standards/
This is the output of printing __file__
in case you doubt what I say:
>>> print(__file__)
~/edi_parser/standards/edi_standards.py