This repository has been archived on 2024-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-22/src/tests/apinotify_handler.py

16 lines
320 B
Python
Raw Normal View History

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