Go Down

Topic: Arduino IDE start up parameter: sketchbook folder (Read 629 times) previous topic - next topic

s-light

Hello Community,

is there a option / commandline flag to set the sketchbook folder on startup of the IDE?
why i do want to do this?
I have for every project a separate folder. in every project folder there is a folder called 'arduino_sketchbook'.
Example:
Code: [Select]
- prj1_HelloWorldClock
    - infos
    - datasheets
    - arduino_sketchbook
       - sketch1
       - sketch2
       - libraries
       - examples
- prj2_WakeUpLight
    - infos
    - datasheets
    - arduino_sketchbook
       - sketch1
       - sketch2
       - libraries
       - examples
....


so my idea was to make some File shortcuts all pointing to the arduino IDE but with different command line parameters so that my needed arduino_sketchbook is loaded automatically.
(i use windows 7 and Arduino IDE 1.0.4)

if someone has an idea how to do this - just answer :-)

sunny greetings
stefan

CrossRoads

Why not use File:Preferences, and put your default location, and then put your folders in there. When you open the IDE, the folders will be shown in one of the dropdown menus (Sketchbook maybe? I don't have it in front of me).
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

retrolefty


Why not use File:Preferences, and put your default location, and then put your folders in there. When you open the IDE, the folders will be shown in one of the dropdown menus (Sketchbook maybe? I don't have it in front of me).


Correct. And you also need the single user sketch directory to take advantage of user library folder for storing and access to contributed library software files, and a hardware folder for non-standard arduino AVR chip boards. Don't fight the user sketch directory concept, rather utilize it as designed.

Lefty

s-light

Thanks for your answers,

you are right with the sub folder -
but i enjoy to have only the user library that i use in this project -
ok - sometimes its a bit to much copy and paste -
and some times its the cleanest way to have things separated from each other..
i will look into command-line compilation in some time..
but for now this is a step to big for me..
i love the 'just work' concept of the arduino IDE :-)

have fun
stefan

KirAsh4

You don't need to put the libraries inside of your sketch folders for your sketch to work.  And your sketch will only use whatever library you tell it to use.  You're making things more difficult than you need to.

Go Up