Geo
Geo

Reputation: 96937

Is there a portable way of finding if a path is absolute, using Python?

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

Upvotes: 2

Views: 169

Answers (1)

Lukáš Lalinský
Lukáš Lalinský

Reputation: 41316

The os.path.isabs function does this.

Upvotes: 13

Related Questions