We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e7ecf commit 30b0b9bCopy full SHA for 30b0b9b
nipype/interfaces/slicer/generate_classes.py
@@ -45,6 +45,7 @@ def add_class_to_package(class_codes, class_names, module_name, package_dir):
45
import os\n\n\n"""
46
f_m.write(imports)
47
f_m.write("\n\n".join(class_codes))
48
+ with open(os.path.join(package_dir, "__init__.py"), "a+") as f_i:
49
f_i.write("from {} import {}\n".format(module_name, ", ".join(class_names)))
50
51
0 commit comments