Bobrocket Posted June 30, 2015 Share 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? Quote Link to comment Share on other sites More sharing options...
Developer MGI Posted June 30, 2015 Developer Share 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 Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted June 30, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Ericthecmh Posted June 30, 2015 Share Posted June 30, 2015 You could also get it using the System.getProperty method. System.getProperty("user.home") + File.separator + "OSBot" 1 Quote Link to comment Share on other sites More sharing options...