Get current site during before_install hooks

I have a custom app that has before_install hook.
After creating new-site and install ERPNext this app is installed.

In the method I want to get the name of the site this app currently installing on.
It’s a multi-tenant ERPNext.

I can use site_name = cstr( to get the site name on a doctype.
But can it be used during the installation process?
Or is there any more proper way to do?

Thank you.

import frappe


does give the correct site.