File: architecture.py

package info (click to toggle)
python-apt 3.1.0
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,064 kB
  • sloc: cpp: 10,312; python: 8,812; makefile: 94; sh: 17
file content (12 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (3)
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()