Re: How to properly escape white spaces and weird chars in SOURCES

Giuseppe Corbelli <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
On 5/14/19 2:02 AM, michael h wrote:
> 
>     SOURCES = \
>           white space.py
>           sp&cial.py
> 
>     The current error is:
>     corbelli@corbelli-linux:~/devel/pylupdate-special$
>     /opt/python/bin/pylupdate5  -verbose weirdchars.pro
>     <http://weirdchars.pro>
>     pylupdate5 error: Cannot open Python source file
>     '/home/corbelli/devel/pylupdate-special/white': No such file or
>     directory
>     pylupdate5 error: Cannot open Python source file
>     '/home/corbelli/devel/pylupdate-special/space.py': No such file or
>     directory
> 
> 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?

-- 
Giuseppe Corbelli
_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.