How to know if a script has been start with root rights?
At the beginning I would to do something like this :
import ...
print('Welcome')
if_start_with_sudo:
...
else:
print('This program must be start as root')
exit()
It is possible?