File: external.py

package info (click to toggle)
pqconnect 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,012 kB
  • sloc: python: 7,256; sh: 632; makefile: 75
file content (14 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import sysconfig

if __name__ == "__main__":
    try:
        lib_path = sysconfig.get_path("stdlib", sysconfig.get_default_scheme())

    except AttributeError:
        lib_path = sysconfig.get_path("stdlib")

    if os.path.isfile(os.path.join(lib_path, "EXTERNALLY-MANAGED")):
        print("--break-system-packages")
    else:
        print("")