[Python-3000] python -S

Antoine Pitrou solipsis at pitrou.net
Thu Aug 14 23:49:56 CEST 2008


Hello,

I have a problem with "python -S". When python is launched from its build dir,
the extension build dir is not added to sys.path, and thus importing some
modules fails:

$ ./python -S -c "import threading"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/antoine/py3k/pristine/Lib/threading.py", line 6, in <module>
    from time import time as _time, sleep as _sleep
ImportError: No module named time

The problem is that "python -S" is tested by test_cmdline, and it fails if I try
to import the threading module in io.py, as io.py is needed to initialize the
standard streams. 

Any thoughts?

Antoine.




More information about the Python-3000 mailing list