Changeset 10468

Show
Ignore:
Timestamp:
10/25/10 10:52:47 (3 years ago)
Author:
Snyder.Jason
Message:

changed getInterfaces to try the 2 argument version of compile, then use the 1 argument version if the 2 argument version fails, rather than checking the omniORB version number

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/tools/WaveDev/wavedev/importIDL.py

    r9671 r10468  
    123123  f = os.popen(main.preprocessor_cmd + ' -I "/usr/local/include" -I "/usr/local/include/ossie" -I "/usr/include" "' \ 
    124124               + filename + '"','r') 
    125   if omniORB._coreVersion == "4.1.4": 
     125  try: 
    126126      tree = _omniidl.compile(f, filename) 
    127   else: 
     127  except TypeError: 
    128128      tree = _omniidl.compile(f) 
     129       
    129130  ints = run(tree,'') 
    130131  f.close()