Skip to content

Commit 41e7127

Browse files
committed
1 parent 29001e7 commit 41e7127

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

eo-runtime/src/main/java/org/eolang/PhPackage.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ public byte[] delta() {
116116
* @return Phi
117117
*/
118118
private Phi loadPhi(final String path, final String object) {
119-
final Path pth = Paths.get(
120-
this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath(),
121-
path.replace(".", File.separator)
122-
);
119+
final Path pth = new File(
120+
this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
121+
).toPath().resolve(path.replace(".", File.separator));
123122
final Phi phi;
124123
if (Files.exists(pth) && Files.isDirectory(pth)) {
125124
phi = new PhPackage(object);

0 commit comments

Comments
 (0)