simonarvin / eyeloop

EyeLoop is a Python 3-based eye-tracker tailored specifically to dynamic, closed-loop experiments on consumer-grade hardware.
GNU General Public License v3.0
485 stars 67 forks source link

Use pathlib instead of os #5

Closed kinow closed 4 years ago

kinow commented 4 years ago

Executing python eyeloop, and noticed that in the beginning of the logs it says

'/home/kinow/Development/python/workspace/eyeloop//data' already exists.

There is a double /, which indicated probably some string concatenation. The Py3+ pathlib stdlib module provides good features for handling with path navigation, creating directories.

It adds a new abstraction layer over the existing os code. This PR uses pathlib, and the log now produces.

'/home/kinow/Development/python/workspace/eyeloop/data' already exists.

Also confirmed the trial folder was created within ./data directory.