index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-05 16:52:19 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-11-05 16:52:19 +0100 |
commit | f234b631691e7dcd587243e09c787139bc56fe13 (patch) | |
tree | 435e7bd6f6796a4404e67d9f7b1a210bdeb22b4d /archinstall/lib/plugins.py | |
parent | 5db146a0eb017c240f68579fc58ff825300352cf (diff) | |
parent | 0071a069080732047e11309134869f3ab40c642c (diff) |
-rw-r--r-- | archinstall/lib/plugins.py | 4 |
diff --git a/archinstall/lib/plugins.py b/archinstall/lib/plugins.py index 24fbd8ee..027b58d5 100644 --- a/archinstall/lib/plugins.py +++ b/archinstall/lib/plugins.py @@ -65,7 +65,7 @@ def import_via_path(path :str, namespace=None): # -> module (not sure how to wri def find_nth(haystack, needle, n): start = haystack.find(needle) while start >= 0 and n > 1: - start = haystack.find(needle, start+len(needle)) + start = haystack.find(needle, start + len(needle)) n -= 1 return start @@ -98,4 +98,4 @@ def load_plugin(path :str): # -> module (not sure how to write that in type defi log(err, level=logging.ERROR) log(f"The above error was detected when initiating the plugin: {path}", fg="red", level=logging.ERROR) else: - log(f"Plugin '{path}' is missing a valid entry-point or is corrupt.", fg="yellow", level=logging.WARNING)
\ No newline at end of file + log(f"Plugin '{path}' is missing a valid entry-point or is corrupt.", fg="yellow", level=logging.WARNING) |