Skip to content

Commit 2e6c819

Browse files
committed
Debug symlink
1 parent 2d3d620 commit 2e6c819

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

singlecell/src/org/labkey/singlecell/run/CellRangerGexCountStep.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,14 @@ public File getInclusionListFile(Logger logger) throws PipelineJobException
645645
try
646646
{
647647
Path exePath = Files.readSymbolicLink(exe.toPath());
648-
logger.debug("cellranger symlink target: " + exePath.toString());
649-
exe = FileUtil.resolveFile(exePath.toFile());
648+
logger.debug("cellranger symlink target: " + exePath);
649+
if (!exePath.isAbsolute())
650+
{
651+
exePath = exe.getParentFile().toPath().resolve(exePath);
652+
logger.debug("resolved symlink target: " + exePath);
653+
}
654+
655+
exe = exePath.toFile();
650656
logger.debug("cellranger resolved symlink target: " + exe.getPath());
651657
}
652658
catch (IOException e)

0 commit comments

Comments
 (0)