June 30, 201510 yr 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?
June 30, 201510 yr Developer org.osbot.Constants.HOME_DIR p.s. It is not part of official api so consider it as a 'deprecated' way of retrieving it.
June 30, 201510 yr Author 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
June 30, 201510 yr You could also get it using the System.getProperty method. System.getProperty("user.home") + File.separator + "OSBot"
Create an account or sign in to comment