Work around missing vim module when generating sphinx docs

Horrible solution, should be fixed asap.
This commit is contained in:
Kim Silkebækken 2013-02-08 17:33:54 +01:00
parent 55ad48f0e6
commit b599761ae6
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
import vim
try:
import vim
except ImportError:
vim = {}
try:
_vim_globals = vim.bindeval('g:')

View File

@ -3,7 +3,10 @@
from __future__ import absolute_import
import os
import vim
try:
import vim
except ImportError:
vim = {}
from powerline.bindings.vim import vim_get_func
from powerline.lib import memoize, humanize_bytes