mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-14 12:43:18 +02:00
11 lines
170 B
Python
11 lines
170 B
Python
import coverage
|
|
cov = coverage.process_startup()
|
|
|
|
if cov is not None:
|
|
import atexit
|
|
|
|
def stop():
|
|
cov.stop()
|
|
cov.save()
|
|
|
|
atexit.register(stop)
|