From 8a619ea84cf1f839d395fb8a1fdab4fed83449d7 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Tue, 29 Mar 2016 13:25:04 +0200 Subject: [PATCH] Prevent slashes from being stripped on Windows --- tests/integration/features/conftest.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/features/conftest.py b/tests/integration/features/conftest.py index 05e186002..67c5b2ce5 100644 --- a/tests/integration/features/conftest.py +++ b/tests/integration/features/conftest.py @@ -140,11 +140,10 @@ def run_userscript(quteproc, userscript): Wrapper around :spawn --userscript {userscript} that uses an absolute path. """ - joined_path = os.path.join(utils.abs_datapath(__file__), - 'userscripts', userscript) - abs_userscript_path = os.path.abspath(joined_path) + abs_userscript_path = os.path.join(utils.abs_datapath(__file__), + 'userscripts', userscript) - cmd = ':spawn --userscript {abs_userscript_path}' + cmd = ':spawn --userscript "{abs_userscript_path}"' quteproc.send_cmd(cmd.format(abs_userscript_path=abs_userscript_path))