File: architecture.py

package info (click to toggle)
python-apt 0.9.3.11
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 3,024 kB
  • sloc: cpp: 9,274; python: 6,545; makefile: 106; sh: 16
file content (12 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (4)
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()