Jugdish wrote:
> Thanks very much for your helpful response!
>
>> You'll see that b is executed (making module __main__),
>> (1) it imports pkg.subpkg.a,
>> (2) which is accomplished by importing pkg (successfully),
>> (3)then by importing pkg.subpkg
>> (4)
Thanks very much for your helpful response!
> You'll see that b is executed (making module __main__),
> (1) it imports pkg.subpkg.a,
> (2) which is accomplished by importing pkg (successfully),
> (3)then by importing pkg.subpkg
> (4) which imports pkg
Jugdish wrote:
> Why doesn't the following work?
> ...
[well boiled-down code skipped]
setenv PYTHONPATH $HOME:$PYTHONPATH
python $HOME/pkg/subpkg/b.py
> Traceback (most recent call last):
> File "pkg/subpkg/b.py", line 1, in ?
> import pkg.subpkg.a
> File "$HOME/pkg/subpkg/__