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
#33
You can use the -S option to disable the import of the site module. Does the following command give the same prefixes?
Output:
$ python3.8 -S -c "import sys; print(sys.prefix, sys.exec_prefix, sys.base_exec_prefix)" /usr /usr /usr
Skaperen Wrote:i only found "/etc/python3.8/sitecustomize.py"
This looks strange too. There should be a copy in the python library. What is the output of
$ python3.8 -S -c "import sitecustomize; print(sitecustomize)"
<module 'sitecustomize' from '/usr/lib/python3.8/sitecustomize.py'>
Reply


Messages In This Thread
RE: looking fo documentation for module files - by Gribouillis - Aug-07-2022, 07:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  finding which source files import a module Skaperen 3 2,539 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