Skip to content

Commit db19d94

Browse files
committed
use process instead of threads (fixed)
1 parent 3262751 commit db19d94

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def check_desktop_environment() -> bool:
8585

8686
if __name__ == "__main__":
8787
if "--blocking-subprocess" in sys.argv:
88+
# Strip the wrapper flag before handing off to blocking_process's own argparse
89+
sys.argv = [a for a in sys.argv if a != "--blocking-subprocess"]
8890
from website_blocker.blocking_process import main
8991

9092
main()

0 commit comments

Comments
 (0)