1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
'''
====================================================================
Copyright (c) 2003-2006 Barry A Scott. All rights reserved.
This software is licensed as described in the file LICENSE.txt,
which you should have received as part of this distribution.
====================================================================
wb_diff_main.py
'''
VERSION_STRING = "Uncontrolled"
import sys
# make sure that we get 2.6 and not an earlier version
if not hasattr(sys, 'frozen'):
import wxversion
wxversion.select('2.6')
import wx
import wb_diff_frame
import wb_preferences
class WbDiffApp:
def __init__( self ):
self.log = self
self.prefs = wb_preferences.Preferences( self )
def info( self, *arg ):
pass
def main():
if len(sys.argv) < 3:
print 'Usages: wb_diff file1 file2'
return 1
file1 = sys.argv[1]
file2 = sys.argv[2]
diff_app = WbDiffApp()
app = wx.PySimpleApp()
frame = wb_diff_frame.DiffFrame( diff_app, None, file1, file1, file2, file2 )
frame.Show( True )
app.MainLoop()
return 0
if __name__ == '__main__':
main()
|