Skip to content

Commit

Permalink
STY: Further simplification
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
DimitriPapadopoulos and effigies authored Oct 6, 2024
1 parent 76e7ecf commit 30b0b9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nipype/interfaces/slicer/generate_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def add_class_to_package(class_codes, class_names, module_name, package_dir):
import os\n\n\n"""
f_m.write(imports)
f_m.write("\n\n".join(class_codes))
with open(os.path.join(package_dir, "__init__.py"), "a+") as f_i:
f_i.write("from {} import {}\n".format(module_name, ", ".join(class_names)))


Expand Down

0 comments on commit 30b0b9b

Please sign in to comment.