Server side script variables for uploaded file location

Where do i find the list of server side available variables?

I am looking for variable to use in server side code to open uploaded file.

I have the filename and file url (path) from the File Doctype i.e. /private/files/somthing.csv

but how do i get the absolute path to the file? are there variable for root installation path and site path?

HI @Never_You_Mind:

frappe.utils.get_bench_path() → Absolute path for your bench folder
frappe.utils.get_site_path() → Relative path for your site

Hope this helps.

Hi @avc, exaclty what i am looking for!

Many thanks for you help!