We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307baf7 commit 2155a05Copy full SHA for 2155a05
tools/reckless
@@ -1303,6 +1303,12 @@ def location_from_name(plugin_name: str) -> (str, str):
1303
if this looks like a filepath or URL and return that as well as the
1304
plugin name."""
1305
if not Path(plugin_name).exists():
1306
+ try:
1307
+ parsed = urlparse(plugin_name)
1308
+ if parsed.scheme in ['http', 'https']:
1309
+ return (plugin_name, Path(plugin_name).with_suffix('').name)
1310
+ except ValueError:
1311
+ pass
1312
# No path included, return the name only.
1313
return (None, plugin_name)
1314
0 commit comments