fix: mpv in verify_sync
This commit is contained in:
1 parent
4a5e05cfa2
commit
5dc9e9da09
2 files changed
+13
-3
No files matched your search
+8
-2
@@ -413,7 +413,10 @@ class SyncWindow(QtWidgets.QMainWindow):
|
||||
cmd = [sys.executable, script, "--config", "config.toml",
|
||||
"--lag", f"{self.lag_sec:.6f}", "--mode", "short"]
|
||||
print(f"Launching: {' '.join(cmd)}")
|
||||
subprocess.Popen(cmd, cwd=os.path.dirname(os.path.abspath(__file__)))
|
||||
env = os.environ.copy()
|
||||
env["LC_NUMERIC"] = "C"
|
||||
env["QT_QPA_PLATFORM"] = "xcb"
|
||||
subprocess.Popen(cmd, cwd=os.path.dirname(os.path.abspath(__file__)), env=env)
|
||||
|
||||
def on_apply_sync(self):
|
||||
"""Run apply_sync.py on full files, then launch verify_sync.py in full mode."""
|
||||
@@ -435,7 +438,10 @@ class SyncWindow(QtWidgets.QMainWindow):
|
||||
cmd2 = [sys.executable, verify_script, "--config", "config.toml",
|
||||
"--lag", f"{self.lag_sec:.6f}", "--mode", "full"]
|
||||
print(f"Launching: {' '.join(cmd2)}")
|
||||
subprocess.Popen(cmd2, cwd=script_dir)
|
||||
env2 = os.environ.copy()
|
||||
env2["LC_NUMERIC"] = "C"
|
||||
env2["QT_QPA_PLATFORM"] = "xcb"
|
||||
subprocess.Popen(cmd2, cwd=script_dir, env=env2)
|
||||
|
||||
def play(self, which: str):
|
||||
if not HAS_SD:
|
||||
|
||||
+5
-1
@@ -22,7 +22,11 @@ Usage:
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
import os, sys, math, argparse, subprocess, json, shutil, threading, tempfile, warnings, signal
|
||||
import os, sys, math, argparse, subprocess, json, shutil, threading, tempfile, warnings, signal, locale
|
||||
|
||||
os.environ["LC_NUMERIC"] = "C"
|
||||
locale.setlocale(locale.LC_NUMERIC, "C")
|
||||
|
||||
import numpy as np
|
||||
|
||||
warnings.filterwarnings("ignore", category=RuntimeWarning, module="pyqtgraph")
|
||||
|
||||
Reference in new issue
Block a user