I wrote a small Python script test.py containing just the following two lines:
for i in range(100): print "hello"
>D:\tmp>python test.py > d:\tmp\blb.txt
>
>D:\tmp>test.py > d:\tmp\blb.txt
>
However, if the command shell is started through Altap Salamander, then the replies are like this:
>D:\tmp>python test.py > d:\tmp\blb.txt
>
>D:\tmp>test.py > d:\tmp\blb.txt
>close failed in file object destructor:
>Error in sys.excepthook:
>
>Original exception was:
>
">" at the beginning of lines were added by me to highlight the sessions.
The environment:
-Windows 7 64 bit Ultimate
-Python 2.6.2 32 bit
-Altap Salamander 2.52
I noticed different environment variable setting in the CMD shells:
CMD Windows 7:
CommonProgramFiles=C:\Program Files\Common Files
ProgramFiles=C:\Program Files
CMD Salamander:
CommonProgramFiles=C:\Program Files (x86)\Common Files
ProgramFiles=C:\Program Files (x86)
I would guess it deals with file type association, its related mechanism of execution, and mixing 32 and 64 bit environments.
Any clue what is going on?
Thank you
Radek