def _create_example_and_lib_files(simulation_type): d = simulation_dir(simulation_type) pkio.mkdir_parent(d) for s in examples(simulation_type): save_new_example(s) d = simulation_lib_dir(simulation_type) pkio.mkdir_parent(d) template = sirepo.template.import_module(simulation_type) if hasattr(template, 'resource_files'): for f in template.resource_files(): #TODO(pjm): symlink has problems in containers # d.join(f.basename).mksymlinkto(f) f.copy(d)