Gabriel Genellina wrote:
But the associated program might change the current directory - that's
not the case with the default associations created by the Python
installer, but one should verify this.
To the OP: please create this small test script
import os
print("curdir=", os.getcwd())
print("__file__=", __file__)
input()
and post what you get when you double-click on it.
Also, from the command line, execute:
D:\temp>reg query HKCR\.py
! REG.EXE VERSION 3.0
HKEY_CLASSES_ROOT\.py
<Sin nombre> REG_SZ Python.File
Content Type REG_SZ text/plain
HKEY_CLASSES_ROOT\.py\PersistentHandler
I'm interested in this, because I'm using Windows XP, and when I execute this
command I see the first part but not the second (with PersistentHandler). Is
this related to the fact that when I double-click on a .py file the command
window disappears after the execution is completed?
--
http://mail.python.org/mailman/listinfo/python-list