Bobrocket Posted June 30, 2015 Posted June 30, 2015 I need to save a fair amount of data locally for some scripts, and I need to know if there is any way to grab the current OSBot directory. Scripts on the SDN aren't saved locally, so I guess I cannot just check the running directory of the script. Any ideas?
Developer MGI Posted June 30, 2015 Developer Posted June 30, 2015 org.osbot.Constants.HOME_DIR p.s. It is not part of official api so consider it as a 'deprecated' way of retrieving it. 1
Bobrocket Posted June 30, 2015 Author Posted June 30, 2015 org.osbot.Constants.HOME_DIR p.s. It is not part of official api so consider it as a 'deprecated' way of retrieving it. Thank you
Ericthecmh Posted June 30, 2015 Posted June 30, 2015 You could also get it using the System.getProperty method. System.getProperty("user.home") + File.separator + "OSBot" 1