pydev v 2.1.0
How to reproduce:
Create a project with at least two modules, on module being named "stat.py"
Run the other module as a python program. pydev fails with:
Traceback (most recent call last):
File "C:\BDF\Python32\lib\site.py", line 529, in <module>
File "C:\BDF\Python32\lib\site.py", line 518, in main
known_paths = addsitepackages(known_paths)
File "C:\BDF\Python32\lib\site.py", line 309, in addsitepackages
File "C:\BDF\Python32\lib\genericpath.py", line 44, in isdir
AttributeError: 'module' object has no attribute 'S_ISDIR'
On a more complex project (but I haven't found out what makes the difference) pydev fails with
Fatal Python error: Py_Initialize: can't initialize sys standard streams Traceback (most recent call last): File "C:\Python32\lib\io.py", line 60, in <module> This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
What I was expecting
The program should run normally. There is no problem with python.exe