♻️ Refactor project structure by removing scattered Python test scripts

This commit is contained in:
2026-05-24 07:25:50 +08:00
parent b71ccc41b2
commit d65991aa9d
31 changed files with 0 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env python3
import os
import subprocess
if __name__ == "__main__":
subprocess.Popen(
['sleep', '50'],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
preexec_fn=os.setpgrp # 让子进程独立,即使当前脚本挂了它也继续运行 for Linux/Unix/MacOS
)
# for Windows
# flags = 0x00000008 | 0x00000200
# process = subprocess.Popen(
# ["cmd", "/c", "your_script.bat"],
# stdout=subprocess.DEVNULL,
# stderr=subprocess.DEVNULL,
# creationflags=flags
# )