# Path: lib/Errors/SubcommandNotFoundError.py
# class SubcommandNotFoundError(Exception):
#     pass


import importlib
import lib.Tools.Casify as Casify
from lib.Errors.SubcommandNotFoundError import SubcommandNotFoundError


class InstanceResolver:
    def __init__(self, instantiate=True):
        self.instantiate = instantiate

    def resolve(self, name, path='lib.Subcommands'):
        class_name = Casify.to_pascal_case(name)
        module_name = path + "." + class_name
        try:

# Path: lib/Errors/SubcommandNotFoundError.py
# class SubcommandNotFoundError(Exception):
#     pass


# Path: lib/Tools/InstanceResolver.py
import importlib
import lib.Tools.Casify as Casify
from lib.Errors.SubcommandNotFoundError import SubcommandNotFoundError



class InstanceResolver:
    def __init__(self, instantiate=True):
        self.instantiate = instantiate

    def resolve(self, name, path='lib.Subcommands'):
        class_name = Casify.to_pascal_case(name)
        module_name = path + "." + class_name
        try:

            mod = importlib.import_module(module_name)