the task is to read values from a ini file
Im working with Pycharm which for some reasons can not find a file from a relative path
I use pathlib.Path
resolve
to set the absolut path
because os.path.abspath("config_file/config.ini")
doesnt work with my windows setup
filepath = pathlib.Path('../../myproject/config_file/config.ini').resolve()
works on my current machine but when I run the code on another device the ini file can not be found again.
on this answer Use resolve()
are some errors mentioned that could acour while using this function.
Are theese already resolved or Im just unaware of the functionality of pathlib resolve
?