-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from s-ccs/python38cythonfix
fix windows installation
- Loading branch information
Showing
4 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
"""Read eye-tracking information from EyeLink EDF files.""" | ||
|
||
|
||
import sys | ||
if sys.platform.startswith("win32"): | ||
import os | ||
import platform | ||
srr_basedir = r"C:\Program Files (x86)\SR Research\EyeLink" | ||
if platform.architecture()[0] == "64bit": | ||
arch_dir = 'x64' | ||
else: | ||
arch_dir = '' | ||
# due to a change in python 3.8, the searchpath is not automatically added anymore | ||
os.add_dll_directory(os.path.join(srr_basedir, 'libs', arch_dir)) | ||
|
||
from pyedfread.parse import read_edf | ||
from pyedfread.edf_read import read_preamble, read_messages, read_calibration |