daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jul 19th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Monkstone, 2011-February-11 -->
  2. <COMMANDO>
  3. <UI>
  4. <CAPTION LABEL="Run">
  5. <FILE_ENTRY LABEL="ruby file" VARNAME="file" EVAL="buffer.getName()"/>
  6. </CAPTION>
  7. <CAPTION LABEL="Path to PYP5">
  8. <ENTRY LABEL="(no spaces)" VARNAME="PYP5" DEFAULT="/home/tux/bin/"/>
  9. </CAPTION>
  10. </UI>
  11.  
  12. <COMMANDS>
  13. <!-- NB: I found that if I cd to the directory of the sketch, the data file is not recognized
  14.      So instead I call the file at the absolute address using the prefix dir, and it works
  15. -->
  16. <COMMAND SHELL="System" CONFIRM="FALSE">
  17.           dir = new StringBuilder(MiscUtilities.getParentOfPath(buffer.getPath()));
  18.       buf = new StringBuilder(PYP5 + "pyp5 ");
  19.       buf.append(" ");
  20.       buf.append(dir);
  21.       buf.append(file);
  22.       buf.toString();
  23. </COMMAND>
  24. </COMMANDS>
  25. </COMMANDO>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top