[QBS] qbs.getenv() in qbsSearchPaths not working

Christian Kandeler christian.kandeler at digia.com
Tue Nov 19 17:57:19 CET 2013

On 11/18/2013 04:41 PM, Epting, Thomas wrote:
> I'm currently testing QtCreator 3.0 beta (on Windows) and noticed that
> using qbs.getenv() in qbsSearchPaths is not working. For example:
>      qbsSearchPaths: qbs.getenv("MYROOT") + "/mypath/qbs"
> In this case I get an error message: "ReferenceError: Can't find
> variable: qbs".


> In QtCreator 2.8.1, I've used moduleSearchPath instead,
> which had no problems with qbs.getenv(). As a workaround, I can resolve
> getenv() manually and use its value in the string constant directly.
> Also, qbs.getenv() is working perfectly in other cases in the same file.
> Is this working as designed?

No, I guess this is one of those pesky initialization order problems.

 > Or is it a known/new issue? In the latter case, I could create a bug 
report in Jira.

Please do.


More information about the Qbs mailing list