Files
epaper-dashboard/socktest.py
T
ki 28124c5617 Initial commit: epaper-dashboard for 7.3" ACeP 7-Color display
- dashboard.py: plugin-based renderer with 4x4 grid layout
- admin.py: web UI with layout editor + plugin configs
- layout.py: pack algorithm, item placement, grid system
- plugins/: clock, weather, system, spotify, strava, gmail, minimax, hello
- network_watchdog.py: WiFi AP/client mode management
- waveshare_epd_init.py: vendor driver stub
2026-08-26 14:12:43 +04:00

15 lines
338 B
Python

import os, socket
p = "/tmp/test.sock"
if os.path.exists(p):
os.remove(p)
srv = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
try:
srv.bind(p)
srv.listen(1)
print("bound, listening")
print("exists immediately after bind:", os.path.exists(p))
finally:
srv.close()
if os.path.exists(p):
os.remove(p)