Missing file association dialog pops up all the time
|Reported by:||wenzeslaus||Owned by:|
Doing almost anything in GRASS on MS Windows causes that "Missing file association dialog" pops up. It happens when some Python module runs. System reports that "file association" for
.py file is missing, although that there is no (?) reason for it. The strange thing is that after closing the dialog, everything starts normally.
This was not happening few weeks ago. It is happening for both Win 7 and Win 8 and for new GRASS 7 and also for more than half-year-old snapshot, so one would say that something changed by some Windows update. (Milestone, version, and ms win set to 7, but probably applies also for others.)
It seems that system looks for the "file association" for
.py files even if you run
from windows command line (as some would say DOS). It also happens if you use Popen to start a subprocess.
Setting file association to
C:\...grass...\extrabin\pythonw.exe does help - the dialog no longer pops up. However, when the association was set to
notepad, running some script in GRASS opened
notepad window with the
.py file, so system is using the file association to start something. I haven't noticed this with association to
I'm also not sure when GRASS is using file association (i.e. staring python script without any
python.exe) and when is using
python.exe to start script (which is passed as parameter). When a later case would be the only case the file association set to some /dev/null-like program would work but its of course strange.
How to debug a problem
I've tried to use these commands to get some info, but they were not working (change haven't appeared):
assoc .py ftype "Something, probably Python.File"
may be important, since it contains
.PY in GRASS session.