|
Server IP : 217.21.91.233 / Your IP : 216.73.216.58 Web Server : LiteSpeed System : Linux in-mum-web832.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u952924200 ( 952924200) PHP Version : 8.2.27 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 : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /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)