Merge branch 'master' into develop
This commit is contained in:
@ -26,7 +26,9 @@ def entrypoint(args=None):
|
||||
|
||||
commands = {}
|
||||
|
||||
def register_extension(ext, commands=commands):
|
||||
def register_extension(ext):
|
||||
nonlocal commands
|
||||
|
||||
try:
|
||||
parser = subparsers.add_parser(ext.name)
|
||||
if isinstance(ext.plugin, type) and issubclass(ext.plugin, BaseCommand):
|
||||
|
||||
@ -33,9 +33,9 @@ class InitCommand(BaseCommand):
|
||||
self.logger.info("Generated {} using template {!r}.".format(filename, template_name))
|
||||
|
||||
def create_package(self, *, filename):
|
||||
name, ext = os.path.splitext(filename)
|
||||
if ext != "":
|
||||
raise ValueError("Package names should not have an extension.")
|
||||
_, ext = os.path.splitext(filename)
|
||||
if ext != '':
|
||||
raise ValueError('Package names should not have an extension.')
|
||||
|
||||
try:
|
||||
import medikit.commands
|
||||
|
||||
Reference in New Issue
Block a user