pywin32
pywin32 copied to clipboard
Prefer `os.path.exists` over `os.stat try-catch`
Makes checking the existence of a path more idiomatic. Reduces use of try-catch for logical flow. Simplifies some code. Solves a few "possibly unbound/undefined" variables as seen by type-checkers.