[Qt-interest] QtCreator: How to use environment variables in QtCreator project settings
M. Bashir Al-Noimi
mbnoimi at gmx.com
Fri May 21 07:56:53 CEST 2010
Hi Carsten,
First of all, you can post this issue in Qt Creator mailing list
(qt-creator at trolltech.com), in mean time you can fix this issue by
following these steps (I suppose you're using Windows):
* Add Python path into PATH variable from build environment tab in
project build settings (this procedure will save your
modifications into *.pro.user file)
* Add new build step by choosing Custom process step
* Add Python command and needed arguments (don't forget to enable
process step check box)
* Change step position (optional) by clicking on control buttons at
left side of Build steps tabs
* Build
On 20/05/2010 02:45 م, Carsten Breuer wrote:
> Hi all,
>
>
> I'm trying to add a custom build step in QtCreators project settings,
> but I'm not able to use environment variables in the command field.
>
> In detail, i want to start python with
>
> %PYTHON_PATH%\python.exe script.py
>
> It seems to me that QtCreator doesn't check any environment variables
> in the command field.
>
> I have tried:
>
> %ENV_NAME%
> $ENV_NAME$
> $$ENV_NAME$$
> $(ENV_NAME)
>
> So ... i rest my case ;-).
>
> Any ideas? Help is more then appreciated :-).
>
>
> Best regards,
>
>
>
> Carsten Breuer
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100521/0c3f4e51/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2010-05-21_074709.jpg
Type: image/jpeg
Size: 53940 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100521/0c3f4e51/attachment.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2010-05-21_075328.jpg
Type: image/jpeg
Size: 21573 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100521/0c3f4e51/attachment-0001.jpg
More information about the Qt-interest-old
mailing list