Changeset 3532

Show
Ignore:
Timestamp:
04/30/07 15:38:18 (6 years ago)
Author:
bhilburn
Message:

Apparently the OS module doesn't handle regex very well. Made the os.remove lines more specific.

Location:
WaveDev/trunk/WaveDev/wavedev
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • WaveDev/trunk/WaveDev/wavedev/XML_gen/application_gen.py

    r3530 r3532  
    231231   
    232232   # Remove temporary files 
    233    #os.system('rm -f ' + waveformDir + '.*.tmp') 
    234    os.remove(waveformDir + '.*.tmp') 
     233   os.remove(outputFilename_sad + '.tmp') 
    235234    
    236235   ####################### 
     
    282281     
    283282    # Remove temporary files 
    284     #os.system('rm -f ' + path + '.*.tmp') 
    285     os.remove(path + '.*.tmp') 
     283    os.remove(path+'.'+waveName+'_DAS.xml.tmp') 
    286284 
    287285################################################################################ 
     
    329327   
    330328    # Remove temporary files 
    331     #os.system('rm -f ' + path + '.*.tmp') 
    332     os.remove(path + '.*.tmp') 
     329    os.remove(path + '.' + outputFilename_spd + '.tmp') 
    333330     
    334331    #tempDM = CC.Component(dmName,generate=False) 
     
    337334    # Copy the scd and prf files to directory - these aren't changed yet 
    338335    print "Performing a copy to: " + path + outputFilename_scd 
    339     #os.system('cp XML_gen/DevMan/_scd.xml.tpl ' + path + outputFilename_scd) 
    340     #os.system('cp XML_gen/DevMan/_prf.xml.tpl ' + path + outputFilename_prf) 
    341336    shutil.copyfile('XML_gen/DevMain/_scd.xml.tpl', path + outputFilename_scd) 
    342337    shutil.copyfile('XML_gen/DevMain/_prf.xml.tpl', path + outputFilename_prf) 
     
    410405   
    411406    # Remove temporary files 
    412     #os.system('rm -f ' + path + '.*.tmp') 
    413     os.remove(path + '.*.tmp') 
     407    os.remove(path + '.' + outputFilename_dcd + '.tmp') 
  • WaveDev/trunk/WaveDev/wavedev/XML_gen/component_gen.py

    r3530 r3532  
    103103    
    104104    # Remove temporary files 
    105     #os.system('rm -f ' + compDir + '.*.tmp') 
    106     os.remove(compDir + '.*.tmp') 
     105    os.remove(compDir + '.' + outputFileName_scd + '.tmp') 
    107106    
    108107    
     
    147146    
    148147    # Remove temporary files 
    149     #os.system('rm -f ' + compDir + '.*.tmp') 
    150     os.remove(compDir + '.*.tmp') 
     148    os.remove(compDir + '.' + outputFileName_spd + '.tmp') 
    151149     
    152150def gen_prf(comp, waveformDir): 
     
    228226    
    229227    # Remove temporary files 
    230     #os.system('rm -f ' + compDir + '.*.tmp') 
    231     os.remove(compDir + '.*.tmp') 
     228    os.remove(compDir + '.' + outputFileName_prf + '.tmp') 
  • WaveDev/trunk/WaveDev/wavedev/generate/genNode.py

    r3530 r3532  
    10341034      for c in self.active_wave.components: 
    10351035        if c.AssemblyController == True and c.generate: 
    1036             #os.system('mv ' + self.path + c.name + ' ' + self.path + self.active_wave.name) 
    10371036            shutil.move(self.path + c.name, self.path + self.active_wav.name) 
    1038  
    1039