Update indexa.py

This commit is contained in:
JotaChina 2024-07-24 20:48:59 -03:00 committed by GitHub
parent 74b333e2b1
commit b64001ef08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ def process_mmps_in_folder(folder_path):
file_name = os.path.basename(destination_path)
file_name = os.path.splitext(file_name)[0] + ".mmp"
output_file_path = os.path.join(folder_path, file_name)
QT_DEBUG_PLUGINS=1
QT_QPA_PLATFORM=offscreen
os.environ['QT_DEBUG_PLUGINS'] = '1'
os.environ['QT_QPA_PLATFORM'] = 'offscreen'
comando = f'lmms --dump "{destination_path}" > "{output_file_path}"'
try:
subprocess.run(comando, shell=True, check=True)