javaclass

Change of runclass.py

120:14b1b75cd8c2
runclass.py
     1.1 --- a/runclass.py	Thu Jan 13 18:33:48 2005 +0100
     1.2 +++ b/runclass.py	Thu Jan 13 18:36:31 2005 +0100
     1.3 @@ -13,7 +13,8 @@
     1.4          module = __import__("__this__", globals(), locals(), [class_name])
     1.5          obj = getattr(module, class_name)
     1.6      else:
     1.7 -        obj = __import__(class_name, globals(), locals())
     1.8 +        class_module = ".".join(class_name_parts[:-1])
     1.9 +        obj = __import__(class_module, globals(), locals())
    1.10          for part in class_name_parts[1:]:
    1.11              obj = getattr(obj, part)
    1.12