#!/usr/bin/python3
import os
a=[x.strip() for x in open('/etc/p2pool-love/p2pool.conf') if x.strip() and not x.lstrip().startswith("#")]
if "YOUR_MONERO_WALLET_ADDRESS" in a: raise SystemExit("Set your Monero wallet in /etc/p2pool-love/p2pool.conf before starting")
os.execv('/usr/bin/p2pool-love', ['p2pool-love']+a)
