Changeset 3508
- Timestamp:
- 04/27/07 15:31:04 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
WaveDev/trunk/WaveDev/wavedev/generate/templates/py_comp/genStructure.py
r3502 r3508 92 92 ############################################################################## 93 93 def genCompFiles(self,comp): 94 95 ########################################################################## 94 96 #generate component .py file 95 #TODO: write all the code for generting .py file based on component class instance 97 ########################################################################## 98 #TODO: write more of the code for generting .py file based on component class instance 99 input_tmpl = open('generate/templates/py_comp/_sampleComp.py', 'r') 100 101 #create the main .py file for the component 102 output = open(self.path + comp.name + '/' + comp.name + '.py', 'w') 103 104 #add the generic public license to the beginning of the component main .py file 105 self.addGPL(output, comp.name) 106 107 96 108 97 109 … … 873 885 874 886 def addGPL(self,outFile,name): 887 '''Creates a GPL for the component. The new GPL will have the component 888 name. The new GPL is written to the beginning of the outFile''' 889 875 890 inFile = open('generate/gpl_preamble','r') 876 891 for line in inFile.readlines():