Source

silverlog / silver-runner.py

from silverlog import SilverLog
import os

if os.environ.get('SILVER_VERSION', '').startswith('silverlining/'):
    application = SilverLog()
else:
    base = os.path.join(os.path.dirname(__file__), 'tests', 'test-logs')
    application = SilverLog(
        {'SILVER_DIR': os.path.join(base, 'silverlining'),
         'APACHE_DIR': os.path.join(base, 'apache2'),
         })