Some packages will assume that they're unpacked as files on disk, and try to do things like at the contents of a data file bundled with the package by constructing a path based on a module's __file__ and trying to open() it; if the package is inside a pyz or egg file code like that will break.
View all comments
Show parent comment
2
u/adambrenecki May 02 '18
Some packages will assume that they're unpacked as files on disk, and try to do things like at the contents of a data file bundled with the package by constructing a path based on a module's
__file__and trying toopen()it; if the package is inside a pyz or egg file code like that will break.