eth-monitor

Monitor and cache ethereum transactions with match filters
git clone git://git.defalsify.org/eth-monitor.git
Info | Log | Files | Refs | README | LICENSE

run.py (363B)


      1 # standard imports
      2 import os
      3 import logging
      4 
      5 logg = logging.getLogger(__name__)
      6 
      7 
      8 def cleanup_run(settings):
      9     if not settings.get('RUN_OUT'):
     10         return
     11     lockfile = os.path.join(settings.get('RUN_DIR'), '.lock')
     12     os.unlink(lockfile)
     13     logg.debug('freed rundir {}'.format(settings.get('RUN_DIR')))
     14 
     15 
     16 def cleanup(settings):
     17     cleanup_run(settings)