marcus-nystrom / Titta

Python and PsychoPy interface to Tobii eye trackers using Tobii Pro SDK
Other
61 stars 25 forks source link

fix-issue-52 in TalkToProLab.py #53

Closed mao-dongyang closed 5 months ago

mao-dongyang commented 5 months ago

The fix is to replace file_ext = media_name.split('.')[1] with file_ext = media_name.split('.')[-1]. This modification ensures the correct extraction of the file extension, enhancing the code's robustness.