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
#34
sorry, these are in reverse order because the highlight-reply mechanism on the website does it that way:

(Aug-07-2022, 07:15 AM)Gribouillis Wrote: This looks strange too. There should be a copy in the python library. What is the output of
Output:
lt1a/forums/3 /home/forums 4> python3.8 -S -c "import sitecustomize; print(sitecustomize)" <module 'sitecustomize' from '/usr/lib/python3.8/sitecustomize.py'> lt1a/forums/3 /home/forums 5> ls -dl --full-time /usr/lib/python3.8/sitecustomize.py lrwxrwxrwx 1 root root 31 2022-06-22 16:18:18.000000000 -0400 /usr/lib/python3.8/sitecustomize.py -> /etc/python3.8/sitecustomize.py lt1a/forums/3 /home/forums 6> box /etc/python3.8/sitecustomize.py +----</etc/python3.8/sitecustomize.py>----------------+ | # install the apport exception handler if available | | try: | | import apport_python_hook | | except ImportError: | | pass | | else: | | apport_python_hook.install() | +-----------------------------------------------------+ lt1a/forums/3 /home/forums 7>
(Aug-07-2022, 07:15 AM)Gribouillis Wrote: You can use the -S option to disable the import of the site module. Does the following command give the same prefixes?
Output:
lt1a/forums/3 /home/forums 7> python3.8 -S -c "import sys; print(sys.prefix, sys.exec_prefix, sys.base_exec_prefix)" /usr /usr /usr lt1a/forums/3 /home/forums 8>
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-07-2022, 09:44 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