/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/main.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/main.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1502 by jonathan, Tue Jul 29 13:50:47 2003 UTC revision 1766 by jan, Wed Oct 1 09:52:28 2003 UTC
# Line 1  Line 1 
1  #! /usr/bin/python  # Copyright (C) 2001, 2002, 2003 by Intevation GmbH
 # Copyright (C) 2001, 2002 by Intevation GmbH  
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
# Line 15  __version__ = "$Revision$" Line 14  __version__ = "$Revision$"
14    
15  import sys  import sys
16    
17  from application import ThubanApplication, show_exception_dialog  from application import ThubanApplication
18  import Thuban.version  import Thuban.version
19    
20  def main():  def main():
21      """Instantiate the application object and run the application"""      """Instantiate the application object and run the application"""
22    
23      if verify_versions():      if verify_versions():
         sys.excepthook = show_exception_dialog  
24          app = ThubanApplication(0)          app = ThubanApplication(0)
25          if len(sys.argv) > 1:          if len(sys.argv) > 1:
26              app.OpenSession(sys.argv[1])              app.OpenSession(sys.argv[1])
27          app.MainLoop()          app.MainLoop()
28            # sys.excepthook is set in ThubanApplication.OnInit()
29          sys.excepthook = sys.__excepthook__          sys.excepthook = sys.__excepthook__
30    
   
31  def verify_versions():  def verify_versions():
32      """Check some library versions.      """Check some library versions.
33    

Legend:
Removed from v.1502  
changed lines
  Added in v.1766

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26