javaclass

Changeset

91:0e8017ad0053
2004-12-14 Paul Boddie raw files shortlog changelog graph Fixed imports from __this__ within the multi-root import mechanism. This avoids multiple imports from the current directory.
classhook.py (file)
     1.1 --- a/classhook.py	Tue Dec 14 01:35:34 2004 +0100
     1.2 +++ b/classhook.py	Tue Dec 14 01:51:07 2004 +0100
     1.3 @@ -150,7 +150,10 @@
     1.4          # Provide a special name for the current directory.
     1.5  
     1.6          if name == "__this__":
     1.7 -            path = "."
     1.8 +            if dir == None:
     1.9 +                return (None, ".", ("", "", JAVA_PACKAGE))
    1.10 +            else:
    1.11 +                return None
    1.12  
    1.13          # Where no directory is given, return failure immediately.
    1.14