Pycharm is throwing error when using relative paths?


Pycharm is throwing IO error when used the relative path in the code. Are there any project settings to override this?

error: An error occurred trying to read the file  ./share/config/config.json

actual path:  /home/satyaadityabaratam/PycharmProjects/ Project_name / share/config/config.json

current file directory in which error came -   /home/satyaadityabaratam/PycharmProjects/ Project_name /Folder1 /storage/

1 comment


Please attach a screenshot showing the problem and a screenshot with Project Structure.


Please sign in to leave a comment.