Changeset 4387
- Timestamp:
- 07/17/07 12:41:58 (6 years ago)
- Files:
-
- 1 modified
-
experimental/ALF/trunk/alf/ALF.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
experimental/ALF/trunk/alf/ALF.py
r4385 r4387 423 423 sad_file = fname 424 424 full_sad_file = dirpath + "/" + fname 425 if fname.find("_DAS.xml") != -1: 426 # make sure that the '_DAS.xml' comes at the end of the file name 427 if fname[-8:] == "_DAS.xml": 428 das_file = fname 429 full_das_file = dirpath + "/" + fname 425 # for framework > r2983, assume DAS file has the same waveform 426 # name as the sad file, and assume that both files are in the 427 # same directory. similar to c_wavLoader. 428 das_file = fname.strip(".sad.xml") + "_DAS.xml" 429 full_das_file = dirpath + "/" + das_file 430 431 # for framework <= r2983: 432 # if fname.find("_DAS.xml") != -1: 433 # # make sure that the '_DAS.xml' comes at the end of the file name 434 # if fname[-8:] == "_DAS.xml": 435 # das_file = fname 436 # full_das_file = dirpath + "/" + fname 437 438 430 439 if (sad_file == None and das_file != None) or (sad_file != None and das_file == None): 431 440 #errorMsg(self, "Could not find both a SAD file and a DAS in this directory:\n " + dirpath) … … 439 448 errorMsg(self, "Conflicting waveform name: " + wavename) 440 449 continue 441 450 442 451 self.availableWaveforms[wavename] = (sad_file, full_sad_file, das_file, full_das_file) 443 452 … … 484 493 self.domMgr.installApplication(name_SAD) 485 494 495 496 print name_SAD 497 print absolute_name_SAD 498 print name_DAS 499 print absolute_name_DAS 486 500 487 501 dasxml = importResource.stripDoctype(absolute_name_DAS)