I would like to convertos file paths like './foo/bar/file.py' to paths used in python import like 'foo.bar.file'.
I could very easily code my self these functions, but I wanted to know if there is a function for making that?
It would be great also if the functions works for windows and linux file paths