Skip to content

Commit 643acae

Browse files
committed
Plexon2RawIO resolves file path if it's a symbolic link prior to passing it to PL2 DLL to be opened.
1 parent b1f227f commit 643acae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neo/rawio/plexon2rawio/plexon2rawio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def __init__(self, filename, pl2_dll_file_path=None, reading_attempts=25):
103103

104104
# note that this filename is used in self._source_name
105105
self.filename = pathlib.Path(filename)
106+
if (self.filename.is_symlink()):
107+
self.filename = self.filename.resolve()
106108

107109
if (not self.filename.exists()) or (not self.filename.is_file()):
108110
raise ValueError(f"{self.filename} is not a file.")

0 commit comments

Comments
 (0)