Changeset 9587

Show
Ignore:
Timestamp:
09/25/09 03:13:29 (4 years ago)
Author:
shereef
Message:

OWD can now find available devices

Files:
1 modified

Legend:

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

    r9580 r9587  
    14561456# NOTE: use CF::FileManager to obtain file location 
    14571457        baseComponentPath = self.installPath + 'dom/xml/' 
     1458        baseDevicePath = self.installPath + 'dev/xml/' 
     1459        if os.path.isdir(baseDevicePath): 
     1460            for d in os.listdir(baseDevicePath): 
     1461                if d != 'dtd': 
     1462                    resList.append( (baseDevicePath,d) ) 
     1463        else: 
     1464            errorMsg(self,"No devices could be found in the following directory: " + baseDevicePath) 
     1465            return 
     1466 
    14581467        if os.path.isdir(baseComponentPath): 
    14591468            for r in os.listdir(baseComponentPath):