You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PyBitmessage/src/tests/apinotify_handler.py

16 lines
326 B

#!/usr/bin/env python
"""
Utility configured as apinotifypath in bitmessagesettings
when pybitmessage started in test mode.
"""
import sys
import tempfile
from test_process import put_signal_file
if __name__ == '__main__':
if sys.argv[1] == 'startingUp':
put_signal_file(tempfile.gettempdir(), '.api_started')