From 7849a36beb458985d1e8b15bd2706a6e084a5f33 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Fri, 4 Feb 2022 12:44:13 +0200 Subject: js: utils.get_user_path: make wrapper of expand-path When utils.get_user_path was added, the expand-path command didn't exist. Now it does, so remove the C code, make it a trivial wrapper. Keep this function for backward compat to not break scripts, but technically it's not required anymore. --- DOCS/man/javascript.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index a776cb32ea..99112db40b 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -215,9 +215,9 @@ Additional utilities ``undefined`` if the variable is not defined. ``mp.utils.get_user_path(path)`` - Expands (mpv) meta paths like ``~/x``, ``~~/y``, ``~~desktop/z`` etc. - ``read_file``, ``write_file``, ``append_file`` and ``require`` already use - this internally. + Trivial wrapper of the ``expand-path`` mpv command, returns a string. + ``read_file``, ``write_file``, ``append_file`` and ``require`` already + expand the path internally and accept mpv meta-paths like ``~~desktop/foo``. ``mp.utils.read_file(fname [,max])`` Returns the content of file ``fname`` as string. If ``max`` is provided and -- cgit v1.2.3