Check if a given string is a relative path.
(url_or_filename: str)
| 422 | |
| 423 | |
| 424 | def is_relative_path(url_or_filename: str) -> bool: |
| 425 | """ |
| 426 | Check if a given string is a relative path. |
| 427 | """ |
| 428 | return urlparse( |
| 429 | url_or_filename).scheme == '' and not os.path.isabs(url_or_filename) |
no outgoing calls
no test coverage detected
searching dependent graphs…