From b8afecc06220a0882790e88638e8354040caf0d6 Mon Sep 17 00:00:00 2001 From: ryanss Date: Sun, 8 Feb 2015 10:21:05 -0500 Subject: Fix #9 ImportError on Windows Use raw string literal to add vim script path to python system path so it doesn't escape single backslash characters. --- plugin/hackernews.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/hackernews.vim b/plugin/hackernews.vim index 3d0d80b..8516747 100644 --- a/plugin/hackernews.vim +++ b/plugin/hackernews.vim @@ -16,7 +16,7 @@ endif " Import Python code execute "python import sys" -execute "python sys.path.append('" . expand(":p:h") . "')" +execute "python sys.path.append(r'" . expand(":p:h") . "')" execute "python from hackernews import hacker_news, hacker_news_link" -- cgit v1.2.3