fix for file protocol
This commit is contained in:
parent
8987505241
commit
b7eb10b7a2
1 changed files with 1 additions and 1 deletions
|
|
@ -888,7 +888,7 @@ def get_circuitpython_version(device_url):
|
|||
url = urlparse(device_url)
|
||||
if url.scheme == "http":
|
||||
return _get_circuitpython_version_http(device_url)
|
||||
if url.scheme == "":
|
||||
if url.scheme == "" or "file":
|
||||
return _get_circuitpython_version_file(url.path)
|
||||
|
||||
click.secho(f"Not supported URL scheme: {url.scheme}", fg="red")
|
||||
|
|
|
|||
Loading…
Reference in a new issue