File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/kscript/app Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -320,15 +320,15 @@ $kotlinOptions
320320
321321 // https://stackoverflow.com/questions/17926459/creating-a-symbolic-link-with-java
322322 createSymLink(File (this , scriptFile.name), scriptFile)
323- val scriptDir = Paths .get(scriptFile.path ).parent
323+ val scriptDir = Paths .get(scriptFile.absolutePath ).parent
324324
325325 // also symlink all includes
326326 includeURLs.distinctBy { it.fileName() }
327327 .forEach {
328328 val symlinkSrcDirAndDestination = when {
329329 it.protocol == " file" -> {
330330 val includeFile = File (it.toURI())
331- val includeDir = Paths .get(includeFile.path ).parent
331+ val includeDir = Paths .get(includeFile.absolutePath ).parent
332332 val symlinkRelativePathToScript = File (this , scriptDir.relativize(includeDir).toFile().path)
333333 symlinkRelativePathToScript.mkdirs()
334334 Pair (symlinkRelativePathToScript, includeFile)
You can’t perform that action at this time.
0 commit comments