Recently, I\'m unable to use relative paths in my code while using PyCharm. For instance, a simple open(\'test.txt\', \'r\') will not work - whereupon I am sure
open(\'test.txt\', \'r\')
Current version 2019.2 somehow ignores "source root" from the "project structure". Here's how to actually enforce it:
2019.2
Run -> Edit Configurations -> Python -> "Edit Templates" -> fill out "Working Directory"