2021-06-16 08:04:59 +02:00
|
|
|
# Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
|
|
|
import os
|
2022-01-15 07:04:04 +01:00
|
|
|
import sys
|
|
|
|
from mypy import pyinfo
|
2021-06-16 08:04:59 +02:00
|
|
|
|
2022-01-15 07:04:04 +01:00
|
|
|
if sys.argv[-1] == "getsitepackages":
|
|
|
|
pkgs = pyinfo.getsitepackages()
|
|
|
|
pkgs.append(os.getenv("EXTRA_SITE_PACKAGES"))
|
|
|
|
print(repr(pkgs))
|
|
|
|
elif sys.argv[-1] == "getprefixes":
|
|
|
|
print(repr(pyinfo.getprefixes()))
|