view backend/sqlalchemy/util.py @ 232:18865de3a87d

all __init__.py files must contain at least an empty line to avoid eric's style checker choking
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 25 Sep 2014 17:10:40 +0200
parents bb3c851b18b1
children
line wrap: on
line source

# -*- coding: utf-8 -*-
import sys

def databaseLoggingEnabled():
    loggingEnabled = False
    for arg in sys.argv:
        if arg == "--databaseLogging":
            loggingEnabled = True
    return loggingEnabled