Skip to content

Commit

Permalink
changed auto generation target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Nov 6, 2023
1 parent e7e30f3 commit a8698da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nipype-auto-conv/generate
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sys.path.insert(0, str(SPECS_DIR))

auto_init = f"# Auto-generated by {__file__}, do not edit as it will be overwritten\n\n"

auto_dir = PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto"
auto_dir = PKG_ROOT / "src" / "pydra" / "tasks" / PKG_NAME / "auto"
if auto_dir.exists():
shutil.rmtree(auto_dir)

Expand All @@ -58,7 +58,7 @@ for fspath in sorted(SPECS_DIR.glob("**/*.yaml")):
auto_init += f"from .{module_name} import {converter.task_name}\n"


with open(PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto" / "_version.py", "w") as f:
with open(auto_dir / "_version.py", "w") as f:
f.write(
f"""# Auto-generated by {__file__}, do not edit as it will be overwritten
Expand All @@ -68,5 +68,5 @@ post_release = (nipype_version + nipype2pydra_version).replace(".", "")
"""
)

with open(PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto" / "__init__.py", "w") as f:
with open(auto_dir / "__init__.py", "w") as f:
f.write(auto_init)

0 comments on commit a8698da

Please sign in to comment.