From 91603aac68593f6749428825d7e94b75873927f4 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 11 Apr 2011 12:05:15 +0200 Subject: doc/examples: Add example on how to get architecture names (LP: #194374) --- doc/examples/architecture.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/examples/architecture.py (limited to 'doc/examples') diff --git a/doc/examples/architecture.py b/doc/examples/architecture.py new file mode 100644 index 00000000..75afb2d1 --- /dev/null +++ b/doc/examples/architecture.py @@ -0,0 +1,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() -- cgit v1.2.3