umpv: Use generator expression for files

Instead of list. potential memory savings.
This commit is contained in:
jimman2003 2021-02-12 14:48:47 +02:00 committed by Jan Ekström
parent 99968e1ce5
commit aac1844179
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def make_abs(filename):
if not is_url(filename):
return os.path.abspath(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")