May-30-2017, 07:52 AM
Hi, sry for the late answer:
Yeah now i have all __init__.py files.
If i gave a this path above which you mentioned, then i get still the same error:
FileNotFoundError: [Errno 2] No such file or directory: 'A/B/spam.txt'
Maybe i am structuring my programm wrong.
So the idea is to have a data folder where my data is, in this folder i have some python files to read them. Then i have another folder for my code which can work with the input given in data.
Furthermore i have a scripts folder where some scripts will be; so the problem above accours here, in this script folder i now have a script, whoch should run my aglorithms for the data given in folder data.
So my question is, is this ok if i do this like that; then the above problem has to be solved or my structure is wrong, then i have to restructure my program and hopefully this problem will vanish.
Thank You!
Yeah now i have all __init__.py files.
If i gave a this path above which you mentioned, then i get still the same error:
FileNotFoundError: [Errno 2] No such file or directory: 'A/B/spam.txt'
Maybe i am structuring my programm wrong.
So the idea is to have a data folder where my data is, in this folder i have some python files to read them. Then i have another folder for my code which can work with the input given in data.
Furthermore i have a scripts folder where some scripts will be; so the problem above accours here, in this script folder i now have a script, whoch should run my aglorithms for the data given in folder data.
So my question is, is this ok if i do this like that; then the above problem has to be solved or my structure is wrong, then i have to restructure my program and hopefully this problem will vanish.
Thank You!