# Path: skema/config.py
# def get_config():
#     global _config
#     if _config is not None:
#         return _config
#     _config = SkemaConfig()
#     return _config


import os
import sys
import skema.command
import skema.suite
        import skema
from optparse import make_option
from traceback import format_exc
from skema.config import get_config
        from skema.suiteutils import suiteloader
        from skema.suiteutils import suiteloader
        from skema.suiteutils import suiteloader
        from skema.tagutils import tagloader
        from skema.tagutils import tagloader
        from skema import suites
        from pkgutil import walk_packages
        from skema import tags
        from pkgutil import walk_packages
            tag.install()
        except RuntimeError as strerror:
            print "Tag installation error: %s" % strerror
            sys.exit(1)


class cmd_uninstall_tag(skema.command.SkemaCmd):
    """
    Uninstall a tag
    """
    arglist = ['*tagname']

    def run(self):

        if len(self.args) != 1:
            print "please specify the name of the tag to uninstall"
            sys.exit(1)
        tag = tagloader(self.args[0])
        try:
            tag.uninstall()
        except Exception as strerror:
            print "Tag uninstall error: %s" % strerror
            sys.exit(1)


class cmd_list_installed_tags(skema.command.SkemaCmd):
    """
    List tags that are currently installed
    """
    def run(self):

# Path: skema/config.py
# def get_config():
#     global _config
#     if _config is not None:
#         return _config
#     _config = SkemaConfig()
#     return _config


# Path: skema/builtins.py
import os
import sys
import skema.command
import skema.suite
        import skema
from optparse import make_option
from traceback import format_exc
from skema.config import get_config
        from skema.suiteutils import suiteloader
        from skema.suiteutils import suiteloader
        from skema.suiteutils import suiteloader
        from skema.tagutils import tagloader
        from skema.tagutils import tagloader
        from skema import suites
        from pkgutil import walk_packages
        from skema import tags
        from pkgutil import walk_packages

            tag.install()
        except RuntimeError as strerror:
            print "Tag installation error: %s" % strerror
            sys.exit(1)


class cmd_uninstall_tag(skema.command.SkemaCmd):
    """
    Uninstall a tag
    """
    arglist = ['*tagname']

    def run(self):

        if len(self.args) != 1:
            print "please specify the name of the tag to uninstall"
            sys.exit(1)
        tag = tagloader(self.args[0])
        try:
            tag.uninstall()
        except Exception as strerror:
            print "Tag uninstall error: %s" % strerror
            sys.exit(1)


class cmd_list_installed_tags(skema.command.SkemaCmd):
    """
    List tags that are currently installed
    """
    def run(self):

        config = get_config()