In a Python script I'd like to be able to take a path and resolve it so I can use editor.get_file_contents() for it.
Two examples:
1) metadata.md
2) ./metadata.md
I can use get_selected_folder() for the first and this works well - concatenating /metadata.md to the path returned and using the root.
How do I do more complicated cases such as the second? Do I individually look for ./ and ../ and manipulate the path from there?
Any ideas? This must be a pretty standard thing to do.