I’m at the beginning of my journey but I believe (it’s probably hope not a faith) that something like system update should be quite easy.
After a little research I’ve found that I can to it this way:
#!/usr/bin/python from subprocess import call call(['sudo','pacman','-Syyu'])
Is this the proper way in terms of Manjaro maintenance?
Is there better/another way?
I know that I could create an alias but I want to learn how to integrate python with the system
I’ve found something about
os.system but in python docs there is an information about subprocess:
This module intends to replace several older modules and functions:
system update is just an example.
Is subprocess and call the way to have an interaction between system and python?