(boolean sketchbook)
| 151 | |
| 152 | |
| 153 | static private File getIndexFile(boolean sketchbook) { |
| 154 | String filename = |
| 155 | "welcome/" + (sketchbook ? "sketchbook.html" : "generic.html"); |
| 156 | |
| 157 | // version when running from command line for editing |
| 158 | File htmlFile = new File("../build/shared/lib/" + filename); |
| 159 | if (htmlFile.exists()) { |
| 160 | return htmlFile; |
| 161 | } |
| 162 | // processing/build/macosx/work/Processing.app/Contents/Java |
| 163 | // version for Scott to use for OS X debugging |
| 164 | htmlFile = Platform.getContentFile("../../../../../shared/lib/" + filename); |
| 165 | if (htmlFile.exists()) { |
| 166 | return htmlFile; |
| 167 | } |
| 168 | |
| 169 | try { |
| 170 | return Base.getLibFile(filename); |
| 171 | } catch (Exception e) { |
| 172 | e.printStackTrace(); |
| 173 | return null; |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | |
| 178 | static public void main(String[] args) { |
no test coverage detected