Volshell: Fix import logic around readline + rlcomplete

This commit is contained in:
David McDonald
2025-03-13 17:09:56 -05:00
parent 6f9f5c34b9
commit fa2a93ade4
+2 -3
View File
@@ -81,9 +81,6 @@ class Volshell(interfaces.plugins.PluginInterface):
if not has_ipython:
try:
import readline
except ImportError:
pass
else:
import rlcompleter
completer = rlcompleter.Completer(
@@ -92,6 +89,8 @@ class Volshell(interfaces.plugins.PluginInterface):
readline.set_completer(completer.complete)
readline.parse_and_bind("tab: complete")
print("Readline imported successfully")
except ImportError:
pass
# TODO: provide help, consider generic functions (pslist?) and/or providing windows/linux functions