Skip to content

Commit cbedbb2

Browse files
author
gabe.turner
committed
Use join_path() when constructing paths
1 parent 6759ee3 commit cbedbb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

repos/spack_repo/builtin/packages/bbmap/package.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ def edit(self, spec, prefix):
4141
if spec.satisfies("platform=darwin"):
4242
makefile = "makefile.osx"
4343

44-
with working_dir(f"{self.build_directory}/jni"):
44+
with working_dir(join_path(self.build_directory, "jni")):
4545
rename(makefile, "Makefile")
4646

4747
@when("+usejni")
4848
def build(self, spec, prefix):
49-
with working_dir(f"{self.build_directory}/jni"):
49+
with working_dir(join_path(self.build_directory, "jni")):
5050
# BBMap comes with a pre-compiled x86_64 library that must first be removed
5151
make("clean")
5252
make()
5353

5454
@when("~usejni")
5555
def build(self, spec, prefix):
56-
with working_dir(f"{self.build_directory}/jni"):
56+
with working_dir(join_path(self.build_directory, "jni")):
5757
# When not building libbbtoolsjni, we should still remove the pre-compiled
5858
# library for x86_64, as it may fail on other platforms.
5959
make("clean")

0 commit comments

Comments
 (0)