I have this directory structure:
mypackage/
|___ installer.spec
|___ package/
|___ __init__.py
and package.__init__.py
contains some variables I'd like to use in my installer.spec
file.
So this file contains a import package
line.
However, running pyinstaller installer.spec
in mypackage/ fails with a ModuleNotFoundError
.
How can I retrieve variables from the package I want to freeze while freezing it with PyInstaller?