Skip to content

Commit 30b0b9b

Browse files
STY: Further simplification
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 76e7ecf commit 30b0b9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: nipype/interfaces/slicer/generate_classes.py

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def add_class_to_package(class_codes, class_names, module_name, package_dir):
4545
import os\n\n\n"""
4646
f_m.write(imports)
4747
f_m.write("\n\n".join(class_codes))
48+
with open(os.path.join(package_dir, "__init__.py"), "a+") as f_i:
4849
f_i.write("from {} import {}\n".format(module_name, ", ".join(class_names)))
4950

5051

0 commit comments

Comments
 (0)