How to access a file within an interactive app

Hi,

So the files necessary to run an interactive app live under $HOME/ondemand/dev/APP_NAME (if I am developing the app) or in /var/www/ood/apps/sys/APP_NAME (if the app is deployed to production).

What I am wondering is, can an app refer to a file in that directory? Is there some special variable to do so? Or can I ensure that a file in that directory gets copied into the same directory where the output.log file is written? I want to make sure that a particular file is accessible while running the interactive app.

I had trouble finding documentation about this because it’s probably a basic thing but also difficult to encapsulate in a search.

Thanks

OK, sorry for the noise, I figured this out. For posterity:

If I put my file in the template directory it gets staged to the per-session output directory (or whatever it is called, the place where output.log is written).

Then in my script.sh.erb I can refer to the file like this:

<%= session.staged_root.join('myfile.txt') %>