What steps will reproduce the problem? 1. Starting up hc.py 2. Trying to enter the configuration editor, pr. instructions in the wiki 3. Forced exit from the configuration editor, as I have no c:/ drive, much less the c:/tmp/tmp/hc.tmp, that hc.py expects to see
What is the expected output? What do you see instead? I expected to be able to edit the configuration file, but got thrown out of the internal configuration editor on the basis of me not owning a Windows operating system
What version of the product are you using? On what operating system? latest available for download on Thursday, March 5th, 2009
Please provide any additional information below. Program output in its entirety: % python hc.py > ec Error trying to write dictionary 'cfg': [Errno 2] No such file or directory: 'c:/tmp/tmp/hc.tmp' Unable to edit dictionary 'cfg' Stack is empty >
The following lines (168-170)in hc.py are responsible: # Editor to use for viewing/changing files "editor" : "d:/bin/vim/vim71/vim.exe", "tempfile" : "c:/tmp/tmp/hc.tmp", # Temp file name
I would like to suggest using the python stdlib module http://docs.python.org/library/tempfile.html#module-tempfile which is supported on all (python supported) platforms
Comment #1
Posted on Mar 17, 2009 by Helpful CatThanks for finding and reporting this. I need to modify the documentation to explain the use.
I deliberately chose not to use the python temporary file facilities primarily because I wanted the file to remain around for debugging if needed. Of course, this screwed up having two processes running hc at the same time, but this wasn't an issue for me. I do need to mention it in the documentation though.
Comment #2
Posted on Mar 17, 2009 by Helpful CatI also need to mention that I agree with you it's a good idea to use the python standard library tempfile facilities; I've changed the code to do so.
Comment #3
Posted on Mar 17, 2009 by Helpful Cat(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium