diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2022-02-04 12:44:13 +0200 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2022-02-04 12:53:16 +0200 |
commit | 7849a36beb458985d1e8b15bd2706a6e084a5f33 (patch) | |
tree | 529faa87b51e008f40d38ac5ce035ea8c770a511 /DOCS | |
parent | 5d31c7310c02767e35bfd82d1cc635427518a298 (diff) | |
download | mpv-7849a36beb458985d1e8b15bd2706a6e084a5f33.tar.bz2 mpv-7849a36beb458985d1e8b15bd2706a6e084a5f33.tar.xz |
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.
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/javascript.rst | 6 |
1 files changed, 3 insertions, 3 deletions
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 |