Fix FTBFS if no "-e" parameter is used

pull/1/head r14.0.0
François Andriot 10 anos atrás commit de Slávek Banko
commit 695fdfc196

@ -108,7 +108,7 @@ def usage(rcode = 2):
sys.stdout.write(" -a tag explicitly enable the qtpe module\n")
sys.stdout.write(" -b dir where pyuic and pylupdate will be installed [default %s]\n" % opt_pyqtbindir)
sys.stdout.write(" -c concatenate each module's C/C++ source files\n")
sys.stdout.write(" -d dir where the PyTQt modules will be installed [default %\ns]" % opt_pyqtmoddir)
sys.stdout.write(" -d dir where the PyTQt modules will be installed [default %s]\n" % opt_pyqtmoddir)
sys.stdout.write(" -e lib explicitly specify the python library\n")
sys.stdout.write(" -f keep any existing features file (when cross-compiling) [default remove]\n")
sys.stdout.write(" -g dir where the TQt qconfig.h file can be found [default TQt include directory]\n")
@ -1343,6 +1343,8 @@ def main(argv):
global opt_vendorcheck, opt_vendincdir, opt_vendlibdir
global opt_libpython
opt_libpython = None
for opt, arg in optlist:
if opt == "-h":
usage(0)

Carregando…
Cancelar
Salvar