Hi

"Normally, the __path__ of an imported module has only one entry, the
directory in which the __init__.py was found. But __init__.py is free to
extend its __path__ to include other directories."

My acme package has subpackages (direct) in different directories. In
relation to pkgutils, extending the path is something used to handle such a
case. See https://github.com/pyinstaller/pyinstaller/issues/1283 for an
example of the structure of the packages on disk. There you can see that
the acme package has (direct) subpackes in C:\python\io\acme, C:\python\db
\acme, C:\python\utils\acme. I tought acme in this case was what was called
a namespace package. In the acme folders there is nothing but a __init__.py
file.

Thanks

On Mon, Jun 1, 2015 at 3:52 PM, Hartmut Goebel <[email protected]>
wrote:

>  Am 01.06.2015 um 13:45 schrieb Thor Andreas Tangen:
>
> Ok, thank you for the answer. But the documentation indicates that it does
> so under the section called "Extending a packages __path__". Maybe I
> misunderstood this section. Could you come up with an example of extending
> a pacakge path?
>
>
> This section basically describes what namepace packages are doing
> (depending on the mechanism they use). This section is for those having
> namespace packages go get them working with PyInstaller. But I can not nee
> any namespace package in your setup.
>
>
> --
>  Schönen Gruß
> Hartmut Goebel
>  Dipl.-Informatiker (univ), CISSP, CSSLP
> Information Security Management, Security Governance, Secure Software
> Development
>
> Goebel Consult, Landshut
> http://www.goebel-consult.de
>
> Blog:
> http://www.goebel-consult.de/blog/kleiner-erfahrungsbericht-mit-online-ocr-diensten
> Kolumne:
> http://www.cissp-gefluester.de/2011-02-fleisige-datensammler-fur-lukratives-geschaeftsmodell-gesucht
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "PyInstaller" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pyinstaller/FcZa03oPzhY/unsubscribe.
> To unsubscribe from this group and all its topics, 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/pyinstaller.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" 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/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to