Skip to content

Commit 2d071e1

Browse files
committed
Fix creating code dirs in the AMUSE tree
1 parent 088901f commit 2d071e1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/amuse/rfi/tools/create_dir.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,13 @@ def _make_support(code_dir: Path, language: str, variables: Dict[str, str]) -> N
8484
for tmpl, path in tmpls_paths.items():
8585
_instantiate_template(tmpl, support_dir / path.format(**variables), variables)
8686

87-
# TODO: this needs to be updated when we move the codes out of community/
88-
shared_base = code_dir / ".." / ".." / ".." / "support" / "shared"
87+
shared_base = code_dir / ".." / ".." / "support" / "shared"
8988
shared_dir = support_dir / "shared"
9089
if shared_base.exists():
9190
# We're probably inside the AMUSE tree, so we make a symlink like for the other
9291
# embedded codes. This avoids having to update many copies of e.g. a broken m4
9392
# macro.
94-
shared_dir.symlink_to(shared_base)
93+
shared_dir.symlink_to(Path("..") / ".." / ".." / "support" / "shared")
9594
else:
9695
shared_dir.mkdir()
9796
for src, dst in _files_support.items():

0 commit comments

Comments
 (0)