We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da7d53f + f678a48 commit b92018fCopy full SHA for b92018f
waterdrop-core/src/main/scala/io/github/interestinglab/waterdrop/config/Common.scala
@@ -48,7 +48,10 @@ object Common {
48
this.mode match {
49
case Some("client") => {
50
51
- val path = Common.getClass.getProtectionDomain.getCodeSource.getLocation.toURI.getPath
+ var path = Common.getClass.getProtectionDomain.getCodeSource.getLocation.toURI.getPath
52
+ if (System.getProperties().getProperty("os.name").toUpperCase().indexOf("WINDOWS") != -1) {
53
+ path = path.substring(1)
54
+ }
55
Paths.get(path).getParent.getParent
56
}
57
0 commit comments