Skip to content

Commit babde69

Browse files
committed
fix home path
1 parent 0c46cb0 commit babde69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/analyzers/java/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def add_dependencies(self, path: Path, files: dict[Path, File]):
2828
groupId = dependency.find('{http://maven.apache.org/POM/4.0.0}groupId').text.replace('.', '/')
2929
artifactId = dependency.find('{http://maven.apache.org/POM/4.0.0}artifactId').text
3030
version = dependency.find('{http://maven.apache.org/POM/4.0.0}version').text
31-
# jar_path = f"/Users/aviavni/.m2/repository/{groupId}/{artifactId}/{version}/{artifactId}-{version}.jar"
32-
jar_path = f"/Users/aviavni/.m2/repository/{groupId}/{artifactId}/{version}/{artifactId}-{version}-sources.jar"
31+
# jar_path = f"{Path.home()}/.m2/repository/{groupId}/{artifactId}/{version}/{artifactId}-{version}.jar"
32+
jar_path = f"{Path.home()}/.m2/repository/{groupId}/{artifactId}/{version}/{artifactId}-{version}-sources.jar"
3333

3434
os.makedirs(f"{path}/temp_deps/{artifactId}-{version}", exist_ok=True)
3535
# subprocess.run(["java", "-jar", "java-decompiler-engine-243.23654.153.jar", "-hdc=0 -iib=1 -rsy=1 -rbr=1 -dgs=1 -din=1 -den=1 -asc=1 -bsm=1", jar_path, f"{path}/temp_deps/{artifactId}-{version}"])

0 commit comments

Comments
 (0)