Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Two optimizations are possible:
is_absolute()can pass theunnormalized path toos.path.isabs()absolute()on an empty path (orPath.cwd()) can avoid joining an empty string onto the working directory (thus avoiding a call toos.path.join()), and short-circuit the string normalization (as the result ofgetcwd()is fully normalized)