From 643acae85957375f4d622921146fb5fa16c7a94e Mon Sep 17 00:00:00 2001 From: Chris Heydrick Date: Sat, 25 Jan 2025 10:54:18 -0600 Subject: [PATCH 1/2] Plexon2RawIO resolves file path if it's a symbolic link prior to passing it to PL2 DLL to be opened. --- neo/rawio/plexon2rawio/plexon2rawio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo/rawio/plexon2rawio/plexon2rawio.py b/neo/rawio/plexon2rawio/plexon2rawio.py index 58995f5ea..ad2a3c32e 100644 --- a/neo/rawio/plexon2rawio/plexon2rawio.py +++ b/neo/rawio/plexon2rawio/plexon2rawio.py @@ -103,6 +103,8 @@ def __init__(self, filename, pl2_dll_file_path=None, reading_attempts=25): # note that this filename is used in self._source_name self.filename = pathlib.Path(filename) + if (self.filename.is_symlink()): + self.filename = self.filename.resolve() if (not self.filename.exists()) or (not self.filename.is_file()): raise ValueError(f"{self.filename} is not a file.") From 8f373947b80f5864de7861efe08ceac0bf2666c5 Mon Sep 17 00:00:00 2001 From: Chris Heydrick Date: Thu, 15 May 2025 08:35:22 -0500 Subject: [PATCH 2/2] Update neo/rawio/plexon2rawio/plexon2rawio.py Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com> --- neo/rawio/plexon2rawio/plexon2rawio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/rawio/plexon2rawio/plexon2rawio.py b/neo/rawio/plexon2rawio/plexon2rawio.py index ad2a3c32e..33a876bf7 100644 --- a/neo/rawio/plexon2rawio/plexon2rawio.py +++ b/neo/rawio/plexon2rawio/plexon2rawio.py @@ -103,7 +103,7 @@ def __init__(self, filename, pl2_dll_file_path=None, reading_attempts=25): # note that this filename is used in self._source_name self.filename = pathlib.Path(filename) - if (self.filename.is_symlink()): + if self.filename.is_symlink(): self.filename = self.filename.resolve() if (not self.filename.exists()) or (not self.filename.is_file()):