]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/ide/activegrid/util/fileutils.py
1 #----------------------------------------------------------------------------
3 # Purpose: Active grid miscellaneous utilities
9 # Copyright: (c) 2004-2005 ActiveGrid, Inc.
10 # License: wxWindows License
11 #----------------------------------------------------------------------------
15 def createFile(filename
, mode
='w'):
18 f
= file(filename
, mode
)
20 os
.makedirs(filename
[:filename
.rindex(os
.sep
)])
21 f
= file(filename
, mode
)
24 def compareFiles(file1
, file2
):
28 line1
= file1
.readline()
29 line2
= file2
.readline()
35 elif (len(line2
) == 0):
37 elif (line1
!= line2
):