summaryrefslogtreecommitdiffstats
path: root/lldb/utils/vim-lldb/python-vim-lldb/plugin.py
blob: c59546c745cd6704be24355a799dca77a00b07ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# Try to import all dependencies, catch and handle the error gracefully if
# it fails.

import import_lldb

try:
    import lldb
    import vim
except ImportError:
    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")
    pass
else:
    # Everthing went well, so use import to start the plugin controller
    from lldb_controller import *
OpenPOWER on IntegriCloud