MCPcopy Index your code
hub / github.com/processing/processing / getSketchPath

Method getSketchPath

java/src/processing/mode/java/JavaBuild.java:574–576  ·  view source on GitHub ↗

Absolute path to the sketch folder. Used to set the working directry of the sketch when running, i.e. so that saveFrame() goes to the right location when running from the PDE, instead of the same folder as the Processing.exe or the root of the user's home dir.

()

Source from the content-addressed store, hash-verified

572 * Processing.exe or the root of the user's home dir.
573 */
574 public String getSketchPath() {
575 return sketch.getFolder().getAbsolutePath();
576 }
577
578
579 /** Class path determined during build. */

Callers 1

getSketchParamsMethod · 0.80

Calls 1

getFolderMethod · 0.45

Tested by

no test coverage detected