[PyQt] How to properly escape white spaces and weird chars in SOURCES
Giuseppe Corbelli
corbelligiuseppe at mesdan.it
Mon May 13 14:01:07 BST 2019
Hi all
I am in the pylupdate/translate business and am stumbling upon an
interesting issue.
I have a
weirdchars.pro
--------------
TRANSLATIONS = it_it.ts
SOURCES = \
white space.py
sp&cial.py
white space.py
--------------
tr("white space")
sp&cial.py
----------
tr("sp&cial")
I cannot figure out how to escape the SOURCES filenames in order to get
pylupdate work.
The current error is:
corbelli at corbelli-linux:~/devel/pylupdate-special$
/opt/python/bin/pylupdate5 -verbose 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
I am tracking it down to pylupdate/proparser.cpp but wanted to know if
there's something I'm doing wrong.
Thanks
--
Giuseppe Corbelli
More information about the PyQt
mailing list