# -*- coding: utf-8 -*-


def source_plugin():
	import os
	import vim

	vim.command('source ' + vim.eval('fnameescape("' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim') + '")'))

# -*- coding: utf-8 -*-


def source_plugin():
	import os
	import vim
	from bindings import vim_get_func

	fnameescape = vim_get_func('fnameescape')

	vim.command('source ' + fnameescape(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim')))

Change code to use vim_get_func('fnameescape')
Change code to use vim_get_func('fnameescape')

Previous version had problems with paths containing backslashes and/or
double quotes.
