( fileName, cob, className )
| 245 | |
| 246 | @staticmethod |
| 247 | def _writePy( fileName, cob, className ) : |
| 248 | |
| 249 | with open( fileName, "w" ) as f : |
| 250 | f.write( |
| 251 | |
| 252 | """import IECore |
| 253 | import os.path |
| 254 | |
| 255 | class %s( IECore.BasicPreset ): |
| 256 | |
| 257 | def __init__( self ): |
| 258 | dir = os.path.dirname( __file__ ) |
| 259 | IECore.BasicPreset.__init__( self, dir+"/%s" ) |
| 260 | |
| 261 | IECore.registerRunTimeTyped( %s ) |
| 262 | |
| 263 | """ % ( className, cob, className ) |
| 264 | |
| 265 | ) |
| 266 | |
| 267 | @staticmethod |
| 268 | def _grabHierarchy( data, parameter, parameterList=() ) : |