/usr/share/doc/python-apt/examples/architecture.py is in python-apt-doc 0.8.3ubuntu7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | import apt_pkg
def main():
apt_pkg.init_config()
print "Native architecture:", apt_pkg.config["APT::Architecture"]
print "All architectures:", apt_pkg.config.value_list("APT::Architectures")
if __name__ == '__main__':
main()
|