I'm writing a task, and then it tries to get theme paths using Config class. Thing is, if the paths are set in terms of DOCROOT, it will be "compiled" as what DOCROOT means to oil, and not what it means in config context and somewhere else but oil.
After banging my head back and forth, it makes me wonder I'm missing something here..., for what I ask you to help me!
the DOCROOT is defined as the path to the frontloader. For index.php, that is your public folder, for oil that is your installation root folder.
If you want to have your oil DOCROOT to point to the public folder (to it is identical to what index.php uses), simply open the oil script and change the defined DOCROOT path.
This is something that can not be done automatically, as there is no way for oil to figure out what your local setup is, and where the index.php is it needs to relate to.