Try to fix path issue on windows
This commit is contained in:
parent
c016c77da4
commit
b1ecdf2924
@ -140,8 +140,10 @@ def run_userscript(quteproc, userscript):
|
|||||||
Wrapper around :spawn --userscript {userscript} that uses an absolute
|
Wrapper around :spawn --userscript {userscript} that uses an absolute
|
||||||
path.
|
path.
|
||||||
"""
|
"""
|
||||||
abs_userscript_path = os.path.join(utils.abs_datapath(__file__),
|
joined_path = os.path.join(utils.abs_datapath(__file__),
|
||||||
'userscripts', userscript)
|
'userscripts', userscript)
|
||||||
|
abs_userscript_path = os.path.abspath(joined_path)
|
||||||
|
|
||||||
cmd = ':spawn --userscript {abs_userscript_path}'
|
cmd = ':spawn --userscript {abs_userscript_path}'
|
||||||
quteproc.send_cmd(cmd.format(abs_userscript_path=abs_userscript_path))
|
quteproc.send_cmd(cmd.format(abs_userscript_path=abs_userscript_path))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user