Fix joining :jseval path
This commit is contained in:
parent
cbf5fc01fa
commit
487951cd31
@ -2062,7 +2062,7 @@ class CommandDispatcher:
|
|||||||
if file:
|
if file:
|
||||||
path = os.path.expanduser(js_code)
|
path = os.path.expanduser(js_code)
|
||||||
if not os.path.isabs(path):
|
if not os.path.isabs(path):
|
||||||
path = os.path.join(standarddir.data(), 'js')
|
path = os.path.join(standarddir.data(), 'js', path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(path, 'r', encoding='utf-8') as f:
|
with open(path, 'r', encoding='utf-8') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user