Changeset 0a9686d in sasview for sansmodels/src/python_wrapper/WrapperGenerator.py
- Timestamp:
- Jun 25, 2012 9:07:41 AM (12 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 33c671e
- Parents:
- f8be87d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/python_wrapper/WrapperGenerator.py
r0ea247e r0a9686d 93 93 self.output_dir = output_dir 94 94 self.c_wrapper_dir = c_wrapper_dir 95 95 96 96 97 … … 201 202 202 203 203 204 204 205 for line in lines: 205 206 … … 209 210 try: 210 211 index = line.index(key) 211 #toks = string.split( line[index:], "=" )212 212 toks = line[index:].split("=" ) 213 213 self.pythonClass = toks[1].lstrip().rstrip() 214 214 215 except: 215 216 raise ValueError, "Could not parse file %s" % self.file … … 287 288 except: 288 289 raise ValueError, "Could not parse file %s" % self.file 289 290 291 290 292 291 def write_c_wrapper(self): 293 292 """ Writes the C file to create the python extension class … … 495 494 return newline 496 495 497 496 def getModelName(self): 497 return self.pythonClass 498 499 500 498 501 # main 499 502 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.