Hi, until qbs 1.9 the following works:
import qbs 1.0 import import 'utils.js' as Utils Probe { id: workspaceRootDetector property path rootDir configure: { rootDir = Utils.detectWorkspaceRoot(qbs) } } Since qbs 2.0.2 (from QtCreator 10.0.2), I get the following error message from calling Utils.detectWorkspaceRoot: 'qbs' is not defined 'qbs' is used within Utils.detectWorkspaceRoot to access some properties from qbs, e.g., return qbs.targetOS.contains("windows") ? "D:/projects" : "/projects" How can I achieve the same with qbs 2.0.2? I would like to use a variant which works in older qbs Version also because older and newer qbs will be used in parallel for a while. Regards, Jochen
_______________________________________________ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs