Sketch name available as a variable?

edited November 2017 in How To...

Is there a way of accessing the sketch name or PDE filename programmatically? i.e., say I'm running a sketch MySketch.pde:

void setup(){
  println( getSketchName() + ".pde" ); // prints "MySketch.pde"
}

Answers

Sign In or Register to comment.