2018-04-10 17:31:44 +02:00
|
|
|
#!/usr/bin/env python
|
2018-04-16 20:19:30 +02:00
|
|
|
"""
|
|
|
|
Utility configured as apinotifypath in bitmessagesettings
|
|
|
|
when pybitmessage started in test mode.
|
|
|
|
"""
|
2018-04-10 17:31:44 +02:00
|
|
|
|
|
|
|
import sys
|
|
|
|
import tempfile
|
2018-04-16 20:19:30 +02:00
|
|
|
|
2018-04-16 09:00:23 +02:00
|
|
|
from test_process import put_signal_file
|
2018-04-10 17:31:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2018-04-16 09:00:23 +02:00
|
|
|
if sys.argv[1] == 'startingUp':
|
|
|
|
put_signal_file(tempfile.gettempdir(), '.api_started')
|