Pycharm is throwing error when using relative paths?

Answered

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/StorageManager.py

1 comment

Hi,

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

0

Please sign in to leave a comment.