String (final String text, final String file) { final PyElementGenerator generator = PyElementGenerator.getInstance(myFixture.getProject()); final PyExpression expression = generator.createExpressionFromText(LanguageLevel.getLatest(), text); return FileUtil.toSystemIndependentName((String) new PyPathEvaluator(file).evaluate(expression)); }