The setup is as follows:
# configuration data for different environments
config_data.py
# generic .spec file which imports the configuration data for different
environments
generic.spec
import config_data
# config_data.py and generic.spec are located in the same folder
# add the --paths=DIR to the pyinstaller search path
python pyinstaller.py --paths=/path/to/config_data generic.spec
The result is:
ImportError: no module named config_data
Expanding the sys.path in generic.spec with:
sys.path += [/path/to/config_data/]
works but is self-defeating as the .spec file then has to be modified to
accomodate different development environments rather than the config_data
file driving different .spec files.
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.