import os staging_flag_file = '/opt/cloudlinux/staging_mode' def staging() -> bool: """ Is staging enabled """ return os.path.isfile(staging_flag_file)