Andrew Wu wrote:
> Thanks again for your help.
>
> I guess I should ask a more basic question about hierarchical directory
> structures and packages. If I have a bunch of files in a flat (single)
> directory structure that I want to reorganize into a hierarchical
> directory structure, do I ne
Thanks again for your help.
I guess I should ask a more basic question about hierarchical directory
structures and packages. If I have a bunch of files in a flat (single)
directory structure that I want to reorganize into a hierarchical directory
structure, do I necessarily have to turn them into
After a more careful perusing and sifting of your response, I discovered
this helped my understanding a lot better:
>
> You can bring names into the package namespace, but the actual code will
> still run in the module where it is defined. For example, in
> PrintMe/PrintBase/__init__.py you can s
Hmmm ... thank you very much for the detailed explanations. This is a very
simplified version of some actual code I'm currently using and attempting to
rework on each individual file (about 60+ of them). If it's not feasible
then I guess I'm stuck with the rework. =(
More comments inline ...
O
Andrew Wu wrote:
> Let's say I have these files in one directory:
>
> PrintBase.py
> PrintHello.py
> PrintBye.py
> I'd like to reorganize the files so they're like the Sound example in
> the Python tutorial:
>
> PrintMe/
> PrintMe/PrintBase/PrintBase.py
> PrintMe/PrintHello/PrintHello.py
> Pri