How to detect that you're in Whonix?

What is a proper way to detect if the script is running in Whonix?
I have a script that needs to get a file from URL in python and it could be started from Whonix or from non-whonix VM so I need to detect inside the script whatever it needs to set tor proxy or not.

Whonix ™ friendly applications best practices chapter Programmatically Detecting Whonix ™ in Whonix wiki

1 Like

Thank you, that’s what I was looking for!