From 517dc9f8b54e0b7eb3eb7fff7ec2c5eced4b82b1 Mon Sep 17 00:00:00 2001 From: protream Date: Tue, 26 Apr 2016 17:26:46 +0800 Subject: [PATCH] snippet `pmdoc`: improve compatibility --- UltiSnips/python.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 2fb775a..fa3ff8b 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -246,7 +246,7 @@ def write_function_docstring(t, snip): snip += triple_quotes(snip) def get_dir_and_file_name(snip): - return os.getcwd().split('/')[-1] + '.' + snip.basename + return os.getcwd().split(os.sep)[-1] + '.' + snip.basename endglobal