2014-05-24 11:44:58 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# vim:fileencoding=utf-8:noet
|
2014-08-31 20:55:26 +02:00
|
|
|
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
|
|
|
|
2014-05-24 11:44:58 +02:00
|
|
|
try:
|
2014-10-25 14:00:32 +02:00
|
|
|
from powerline.commands.config import get_argparser
|
2014-05-24 11:44:58 +02:00
|
|
|
except ImportError:
|
2014-07-22 23:47:46 +02:00
|
|
|
import sys
|
|
|
|
import os
|
2014-05-24 11:44:58 +02:00
|
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(os.path.realpath(__file__)))))
|
2014-10-25 14:00:32 +02:00
|
|
|
from powerline.commands.config import get_argparser
|
2014-05-24 11:44:58 +02:00
|
|
|
|
2014-10-25 14:00:32 +02:00
|
|
|
import powerline.bindings.config as config
|
2014-08-02 18:07:55 +02:00
|
|
|
|
|
|
|
|
2014-05-24 11:44:58 +02:00
|
|
|
if __name__ == '__main__':
|
2014-10-25 14:00:32 +02:00
|
|
|
parser = get_argparser()
|
2014-05-24 11:44:58 +02:00
|
|
|
args = parser.parse_args()
|
|
|
|
|
2014-07-10 19:13:39 +02:00
|
|
|
pl = config.create_powerline_logger(args)
|
|
|
|
|
2014-10-25 14:00:32 +02:00
|
|
|
args.function(pl, args)
|