must execute with root privileges

This commit is contained in:
sinseman44
2020-11-15 08:25:51 +00:00
parent 0ee501e484
commit b8b1d033af

View File

@@ -1,6 +1,10 @@
#!/usr/bin/env python3
import os
import piplot.main
if __name__ == "__main__":
piplot.main.main()
if os.getuid() != 0:
print("You need root permissions to do this ...")
exit(1)
piplot.main.main()