[PyQt] How to properly escape white spaces and weird chars in SOURCES
Dmitry Shachnev
mitya57 at ubuntu.com
Tue May 14 13:34:08 BST 2019
On Tue, May 14, 2019 at 08:47:23AM +0200, Giuseppe Corbelli wrote:
> > The qmake docs say: Usually, whitespace separates values in variable
> > assignments. To specify values that contain spaces, you must enclose the
> > values in double quotes:
> >
> > DEST = "Program Files"
>
> Yeah, got that, but:
> 1) AFAIK lupdate and pylupdate do not share anything, so QT documentation is
> not really accurate
> 2) It does not work (pylupdate5 error: Cannot open Python source file
> '/home/corbelli/devel/pylupdate-special/"white': No such file or directory)
>
> As far as I understand the problem is that the qpy/pylupdate/proparser.cpp
> splits on ' ' (around line 142). Am I correct?
JFYI: for Qt 5.13 there will be an option to use lprodump tool [1] for
parsing .pro files, instead of using a custom parser.
[1]: https://code.qt.io/cgit/qt/qttools.git/tree/src/linguist/lprodump/main.cpp?h=5.13
--
Dmitry Shachnev
More information about the PyQt
mailing list