[lldb/ScriptInterpreter] Unify error message for command script import
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 23 Dec 2019 00:46:01 +0000 (16:46 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 23 Dec 2019 00:47:28 +0000 (16:47 -0800)
commitbd5c8d167b7cce3290d755e29623d047c2ad8e3e
tree5886aa1c8e1240b77fc6dbcbfcb60ece5b874c4c
parent2791667d2e3fb8c1f0abaff93fd8caaabb2b00b9
[lldb/ScriptInterpreter] Unify error message for command script import

Rather than checking for Python explicitly, let the script interpreter
handle things and print an error if the functionality is not supported.
lldb/include/lldb/Interpreter/ScriptInterpreter.h
lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Interpreter/ScriptInterpreter.cpp
lldb/test/Shell/ScriptInterpreter/None/import_module.test [new file with mode: 0644]