How to get the default company from the session?

Hi ,
How to get the default value of the company from the session defaults in python?

It may be possible to use the frappe api.

This thread may be too old , but see if it is useful.

1 Like

Referring to this link : we can get the session company by :
Thanks @smino