Python Forum
looking fo documentation for module files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking fo documentation for module files
#27
(Aug-05-2022, 06:03 PM)Gribouillis Wrote: Which values do you have for sys.exec_prefix and sys.base_exec_prefix ?

Output:
lt1a/forums/3 /home/forums 4> site.getsitepackages;sys.base_exec_prefix;sys.exec_prefix ['/usr/host/bin/../../../local/lib/python3.8/dist-packages', '/usr/host/bin/../../../lib/python3/dist-packages', '/usr/host/bin/../../../lib/python3.8/dist-packages'] '/usr/host/bin/../../..' '/usr/host/bin/../../..' lt1a/forums/3 /home/forums 5> which site.getsitepackages sys.base_exec_prefix sys.exec_prefix /usr/host/bin/site.getsitepackages /usr/host/bin/sys.base_exec_prefix /usr/host/bin/sys.exec_prefix lt1a/forums/3 /home/forums 6> box $(which site.getsitepackages sys.base_exec_prefix sys.exec_prefix) +----</usr/host/bin/site.getsitepackages>----+ | #!/usr/bin/env python3 | | import site | | print(repr(site.getsitepackages())) | +--------------------------------------------+ +----</usr/host/bin/sys.base_exec_prefix>----+ | #!/usr/bin/env python3 | | import sys | | print(repr(sys.base_exec_prefix)) | +--------------------------------------------+ +----</usr/host/bin/sys.exec_prefix>----+ | #!/usr/bin/env python3 | | import sys | | print(repr(sys.exec_prefix)) | +---------------------------------------+ lt1a/forums/3 /home/forums 7>
there is a lot of stuff in /usr/host/bin/../../../lib/python3.8 (which is really /usr/lib/python3.8). nothing has "../../..". any idea which file it might be looking for?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: looking fo documentation for module files - by Skaperen - Aug-05-2022, 10:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  finding which source files import a module Skaperen 3 2,637 Apr-22-2019, 09:28 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020