]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - utils/vim-lldb/python-vim-lldb/plugin.py
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / utils / vim-lldb / python-vim-lldb / plugin.py
1
2 # Try to import all dependencies, catch and handle the error gracefully if it fails.
3
4 import import_lldb
5
6 try:
7   import lldb
8   import vim
9 except 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
12 else:
13   # Everthing went well, so use import to start the plugin controller 
14   from lldb_controller import *