I am trying to create a build for my .ui files generated from qt-designer.
I want to run the python command that generates the python code for the ui files which is normally run like this:
C:\Python27\Lib\site-packages\PyQt4\pyuic4.bat MainProducts.ui > MainProducts.py
I have created a new sublime build like this:
{
"cmd": "C:/Python27/Lib/site-packages/PyQt4/pyuic4.bat","$file"],
"selector": "source.ui"]
}
This works but I can’t redirect the output to a file like this:
{
"cmd": "C:/Python27/Lib/site-packages/PyQt4/pyuic4.bat","$file > $file_base_name.py"],
"selector": "source.ui"]
}
The problem is that the pyuic4.bat command directs the data to standard output and not a file… so you must redirect the standard output to a filename.
How can I redirect the output to a file using the build cmd statement?