1 2# Try to import all dependencies, catch and handle the error gracefully if it fails. 3 4import import_lldb 5 6try: 7 import lldb 8 import vim 9except ImportError: 10 sys.stderr.write("Unable to load vim/lldb module. Check lldb is on the path is available (or LLDB is set) and that script is invoked inside Vim with :pyfile") 11 pass 12else: 13 # Everthing went well, so use import to start the plugin controller 14 from lldb_controller import * 15