I have a script that effectively runs PyInstaller on a group of
applications as part of a larger packaging. I had it running with an
earlier version of PyInstaller, using the following code:
import PyInstaller.configure as cfg
import PyInstaller.makespec as mks
import PyInstaller.build as bld
from PyInstaller.lib.pyi_optparse import OptionParser
parser = OptionParser()
cfg.__add_options(parser)
mks.__add_options(parser)
bld.__add_options(parser)
opts, _ = parser.parse_args()
... followed by
for u in uspecs:
here = os.getcwd()
uname = path.basename(u)
os.chdir(u)
bld.main(uname+'.spec', opts.configfilename, opts.buildpath,
opts.noconfirm)
os.chdir(here)
... where uspecs is a list of paths to subfolders containing projects
with .spec files.
Now, it fails on a couple of counts: PyInstaller.lib.pyi_optparse
doesn't exist, and when I just use the standare optparse,
opts.configfilename doesn't exist.
So, is there an "approved" way to accomplish this?
Thanks in advance,
--
Don Dwiggins
Advanced Publishing Technology
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.