PyBitmessage/src/tests/apinotify_handler.py

16 lines
326 B
Python
Raw Normal View History

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