| Server IP : 104.21.17.213 / Your IP : 216.73.217.141 Web Server : Apache System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64 User : corbizre ( 1013) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/rpm/ |
Upload File : |
from distutils.sysconfig import get_python_lib
from platform import python_version_tuple
import sys
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.stderr.write("Usage: %s <command>\n" % sys.argv[0])
sys.exit(1)
if sys.argv[1] == "version":
sys.stdout.write(".".join(python_version_tuple()[:2]))
sys.exit(0)
if sys.argv[1] == "sitelib":
sys.stdout.write(get_python_lib())
sys.exit(0)
if sys.argv[1] == "sitearch":
sys.stdout.write(get_python_lib(1))
sys.exit(0)
sys.stderr.write("Unknown command: %s\n" % sys.argv[1])
sys.exit(1)