mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 08:33:34 +00:00
umpv: Use generator expression for files
Instead of list. potential memory savings.
This commit is contained in:
parent
99968e1ce5
commit
aac1844179
@ -50,7 +50,7 @@ def make_abs(filename):
|
|||||||
if not is_url(filename):
|
if not is_url(filename):
|
||||||
return os.path.abspath(filename)
|
return os.path.abspath(filename)
|
||||||
return filename
|
return filename
|
||||||
files = [make_abs(f) for f in files]
|
files = (make_abs(f) for f in files)
|
||||||
|
|
||||||
SOCK = os.path.join(os.getenv("HOME"), ".umpv_socket")
|
SOCK = os.path.join(os.getenv("HOME"), ".umpv_socket")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user