From: Kevin A. <ka...@us...> - 2004-10-01 00:05:09
|
Update of /cvsroot/pythoncard/PythonCard/tools/findfiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31045 Modified Files: findfiles.py Log Message: just open the files with the codeEditor Index: findfiles.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/findfiles/findfiles.py,v retrieving revision 1.81 retrieving revision 1.82 diff -C2 -d -r1.81 -r1.82 *** findfiles.py 12 Aug 2004 19:14:21 -0000 1.81 --- findfiles.py 1 Oct 2004 00:05:00 -0000 1.82 *************** *** 372,383 **** # the list of extensions and associated programs to # open with should be user settable ! if os.path.splitext(filename)[-1] in ['.py', '.pyw']: ! program = os.path.join("..", "codeEditor", "codeEditor.pyw") ! if not os.path.exists(program): ! program = os.path.join("..", "codeEditor", "codeEditor.py") ! else: ! program = os.path.join("..", "textEditor", "textEditor.pyw") ! if not os.path.exists(program): ! program = os.path.join("..", "textEditor", "textEditor.py") # throw an exception if textEditor can't be found? log.debug('program: ' + program) --- 372,387 ---- # the list of extensions and associated programs to # open with should be user settable ! ## if os.path.splitext(filename)[-1] in ['.py', '.pyw']: ! # KEA 2004-09-30 ! # just use the codeEditor, it is a better text editor anyway ! # though I will probably add an option to open the file with ! # the resourceEditor as well ! program = os.path.join("..", "codeEditor", "codeEditor.pyw") ! if not os.path.exists(program): ! program = os.path.join("..", "codeEditor", "codeEditor.py") ! ## else: ! ## program = os.path.join("..", "textEditor", "textEditor.pyw") ! ## if not os.path.exists(program): ! ## program = os.path.join("..", "textEditor", "textEditor.py") # throw an exception if textEditor can't be found? log.debug('program: ' + program) |