<reponame>KuttKatrea/sublime-sqlquickrun<gh_stars>1-10
import datetime
import sys

enabled = True


def log(*args):
    if enabled:
        print(
            *(
                ["[ToolRunner][%s]" % datetime.datetime.now().strftime("%H:%M:%S.%f")]
                + list(args)
            )
        )


def forget_modules():
    log("Deleting submodules")
    deletekeys = []
    for key in sys.modules:
        if key.startswith(__package__):
            deletekeys.append(key)

    for key in deletekeys:
        del sys.modules[key]

import datetime
import sys

enabled = True


def log(*args):
    if enabled:
        print(
            *(
                ["[ToolRunner][%s]" % datetime.datetime.now().strftime("%H:%M:%S.%f")]
                + list(args)
            )
        )


def forget_modules():
    log("Deleting submodules")
    deletekeys = []
    for key in sys.modules:
        if key.startswith(__package__):
            deletekeys.append(key)

    for key in deletekeys:
        del sys.modules[key]