On Thu, 13 Nov 2014 08:26:56 -0800 (PST) Phil <[email protected]> wrote:
> > > > > Does > > > > import sys > > sys.path[:0] = '.' > > import B > > > > help? > > > > Cheers -Terry > > > > > Yes, that works. I don't understand why though - the current path - > "." - is still Y, isn't it? How does that make it possible for A to > find B? I think the current directory is wherever A is, check import os g.es(os.getcwd()) in A But I think Python doesn't try to import from the current directory unless you specifically tell it to, as above. Cheers -Terry > Thanks, > Phil > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
