Changeset 5932

Show
Ignore:
Timestamp:
12/05/07 15:18:36 (5 years ago)
Author:
jgaeddert
Message:

gracefully exiting ALF (catching exceptinos)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/alf/branches/alf-0.6.2/alf/ALF.py

    r5790 r5932  
    11#! /bin/env python 
    22import wx 
     3import sys 
    34from wx.lib import ogl 
    45from WaveDev.wavedev import ComponentClass as CC 
    56from WaveDev.wavedev import WaveformClass 
    6 from omniORB import CORBA, PortableServer 
     7try: 
     8    from omniORB import CORBA, PortableServer 
     9except: 
     10    print "ERROR: ALF.py cannot import the omniORB module" 
     11    print "  - Is omniORBpy installed?" 
     12    print "  - Is /usr/local/lib/pythonX.X/site-packages included in ossie.pth?" 
     13    sys.exit(0) 
     14 
    715import CosNaming 
    816from ossie.cf import CF, CF__POA 
    917from ossie.custominterfaces import customInterfaces 
    1018from ossie.standardinterfaces import standardInterfaces 
    11 import sys 
    1219import importWaveform 
    1320import WaveDev.wavedev.importResource as importResource 
     
    436443            return 
    437444 
    438         appSeq =  self.domMgr._get_applications() 
     445        try: 
     446            appSeq =  self.domMgr._get_applications() 
     447        except: 
     448            print "ERROR: ALF.py cannot get a list of applications from domain manager" 
     449            print "  - is nodeBooter running?" 
     450            sys.exit(0) 
     451 
    439452        members = dom_context.list(1000)  
    440453        for m in members[0]: