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

15 lines
316 B
Python
Raw Normal View History

#!/usr/bin/env python
import os
import sys
import tempfile
from datetime import datetime
if __name__ == '__main__':
if sys.argv()[1] == 'startingUp':
with open(
os.path.join(tempfile.gettempdir(), '.api_started'), 'wb'
) as start_file:
start_file.write(datetime.now())