Command classes are now named identically to their commands, so reflect this

in 'find_command_class()' method.
This commit is contained in:
Greg Ward 2000-02-18 00:14:21 +00:00
parent 1993f9ad0e
commit 592f28272e
1 changed files with 1 additions and 2 deletions

View File

@ -447,8 +447,7 @@ class Distribution:
expected class was not found in it."""
module_name = 'distutils.command.' + command
klass_name = string.join \
(map (string.capitalize, string.split (command, '_')), '')
klass_name = command
try:
__import__ (module_name)