Skip to content

Commit 4825ca2

Browse files
SCANPY-142 Extract the JRE at the root of the cache folder (#144)
1 parent 8aeaf9a commit 4825ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pysonar_scanner/jre.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __unpack_jre(self, jre: JRE, file_path: pathlib.Path) -> JREResolvedPath:
104104
return JREResolvedPath(unzip_dir / jre.java_path)
105105

106106
def __prepare_unzip_dir(self, file_path: pathlib.Path) -> pathlib.Path:
107-
unzip_dir = self.cache.get_file_path(f"{file_path}_unzip")
107+
unzip_dir = self.cache.get_file_path(f"{file_path.name}_unzip")
108108
try:
109109
if unzip_dir.exists():
110110
shutil.rmtree(unzip_dir)

0 commit comments

Comments
 (0)