I'm writing a pthon script to install several setups and configs. but before installing that i want to check if the dpkg frontend is locked or not.
sample
if(checkfordpkg() == true):
print("dpkg frontend is locked")
else:
installconfigs()
can someone help me out with this part. I cannot think of a way to check the dpkg frontend lock using python.