Add missing imports in powerline-config

They matter when script is used without properly installing powerline, so that 
importing `powerline.bindings.config` does not work.
This commit is contained in:
ZyX 2014-07-23 01:47:46 +04:00
parent e72ca9d775
commit 1447be1ddc
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ import argparse
try:
import powerline.bindings.config as config
except ImportError:
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(os.path.realpath(__file__)))))
import powerline.bindings.config as config # NOQA