Update indexa.py

This commit is contained in:
JotaChina authored and GitHub committed 2024-07-24 20:54:57 -03:00
1 parent bea3fe72c3
commit 6f94c8d851
1 file changed
+2 -2
+2 -2
View File
@@ -84,10 +84,10 @@ 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)
os.environ['QT_DEBUG_PLUGINS'] = '1'
os.environ['QT_QPA_PLATFORM'] = 'offscreen'
comando = f'lmms --dump "{destination_path}" > "{output_file_path}"'
try:
os.environ['QT_DEBUG_PLUGINS'] = '1'
os.environ['QT_QPA_PLATFORM'] = 'offscreen'
subprocess.run(comando, shell=True, check=True)
print("Comando executado com sucesso!")
except subprocess.CalledProcessError as e: