Question

Is there some built-in function that tells me if a path is absolute or not? I'd like something that is platform independent.

Was it helpful?

Solution

The os.path.isabs function does this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top