mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
d4d8a6b891
Update issue #132 Status: Fixed This is a very strange issue. It turns out that subprocess won't work from non-main threads while a module is being imported. Since the wmiirc entered its event loop rather than returning, it was causing problems. I suspect it was also the cause of the stack traces being printed at interperater shutdown.
13 lines
218 B
Python
Executable File
13 lines
218 B
Python
Executable File
#!/usr/bin/env python
|
|
import os, sys
|
|
path = []
|
|
for p in os.environ.get("WMII_CONFPATH", "").split(':'):
|
|
path += [p, p + '/python']
|
|
sys.path = path + sys.path
|
|
|
|
from pygmi import events
|
|
import wmiirc
|
|
|
|
events.loop()
|
|
|