mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-29 04:54:51 +02:00
Volshell: Fix import logic around readline + rlcomplete
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user