@Override protected void setUp() throws Exception { baseDir = new File(REF.getFileAbsolutePath(new File("InterpreterInfoBuilderTest.temporary_dir"))); try { REF.deleteDirectoryTree(baseDir); } catch (Exception e) { // ignore } libDir = new File(baseDir, "Lib"); libDir.mkdirs(); REF.writeStrToFile("class Module1:pass", new File(libDir, "module1.py")); REF.writeStrToFile("class Module2:pass", new File(libDir, "module2.py")); REF.writeStrToFile("class Module3:pass", new File(libDir, "module3.py")); PydevTestUtils.setTestPlatformStateLocation(); REF.IN_TESTS = true; }
/** @param pythonpatHelperFile */ public void saveToFile(File pythonpatHelperFile) { REF.writeStrToFile(StringUtils.join("\n", this.pythonpath), pythonpatHelperFile); }