Prevent slashes from being stripped on Windows
This commit is contained in:
parent
b1ecdf2924
commit
8a619ea84c
@ -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))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user