We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29001e7 commit 41e7127Copy full SHA for 41e7127
eo-runtime/src/main/java/org/eolang/PhPackage.java
@@ -116,10 +116,9 @@ public byte[] delta() {
116
* @return Phi
117
*/
118
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
- );
+ final Path pth = new File(
+ this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
+ ).toPath().resolve(path.replace(".", File.separator));
123
final Phi phi;
124
if (Files.exists(pth) && Files.isDirectory(pth)) {
125
phi = new PhPackage(object);
0 commit comments