0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/DOCS
wm4 da38caff9c scripting: load scripts from directories
The intention is to provide a slightly nicer way to distribute scripts.
For example, you could put multiple source files into the directory, and
then import them from the actual script file (this is still
unimplemented).

At first I wanted to require a config file (because you need to know at
least which scripting backend it should use). This wouldn't have been
too hard (could have reused/abused the mpv config file parsing
mechanism, and I already had working code that was just 2 function
calls). But probably better to do this without new config files, because
it might become a pain in the distant future.

So this just probes for "main.lua", "main.js", etc., until an existing
file is found.

Another important change is that this skips all directory entries whose
name starts with ".". This automatically excludes the "." and ".."
special directories, and is probably useful to exclude random crap that
might be lying around in the directory (such as editor temporary files,
or OSX, in its usual hrmful, annoying, and idiotic modus operandi,
sharting all over any directories opened by "Finder").

Although the changelog mentions the docs, they're added only in a later
commit.
2020-02-01 18:09:40 +01:00
..
man wayland: remove wayland-frame-wait-offset option 2020-01-31 00:40:44 +00:00
client-api-changes.rst Release 0.31.0 2019-12-28 12:07:07 +01:00
compatibility.rst DOCS/compatibility.rst: add this file 2019-10-05 02:11:55 +02:00
compile-windows.md DOCS: mention that mpv doesn't build with MSVC 2019-12-14 16:05:54 +01:00
contribute.md DOCS/contribute.md: fix a typo 2019-12-15 16:33:58 +01:00
edl-mpv.rst edl: accept arbitrary paths 2019-12-20 13:00:39 +01:00
encoding.rst DOCS/encoding.rst: remove deprecated usage of multiple items with *-add 2020-01-07 18:13:12 +01:00
interface-changes.rst scripting: load scripts from directories 2020-02-01 18:09:40 +01:00
mplayer-changes.rst mac: remove Apple Remote support 2019-12-15 20:07:31 +01:00
release-policy.md DOCS/release-policy.md: clarify a few details 2019-10-27 14:06:16 +01:00
tech-overview.txt DOCS/tech-overview.txt: some more blabla 2019-12-28 10:09:28 +01:00
waf-buildsystem.rst DOCS/waf-buildsystem.rst: fix typo 2017-02-15 10:41:26 +01:00