<s>[INST] How to check if a path is absolute path or relative path in cross platform way with Python? UNIX absolute path starts with '/', whereas Windows starts with alphabet 'C:' or '\'.
Does python has a standard function to check if a path is absolute or relative? 
 [/INST] os.path.isabs returns True if the path is absolute, False if not. The documentation says it works in windows (I can confirm it works in Linux personally).
os.path.isabs(my_path)

 </s>