blob: 8e95bf587052d762124b2f2366aaef7db113776c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/python3
import os
import sys
import signal
os.environ['LANG'] = 'C'
from dogtail.config import config
config.logDebugToStdOut = True
config.logDebugToFile = False
import dogtail.procedural as dt
def run_app(file=None):
global pid
if file is not None:
arguments = os.path.join(os.path.dirname(__file__), file)
else:
arguments = ''
pid = dt.run(sys.argv[1], arguments=arguments, appName='xreader')
def bail():
os.kill(pid, signal.SIGTERM)
sys.exit(1)
|