a-hurst / klibs

A simple Python framework for writing cognitive psychology experiments
7 stars 1 forks source link

Remove use of the deprecated 'imp' module #13

Closed a-hurst closed 2 years ago

a-hurst commented 2 years ago

PR Description

This PR refactors the code used for 1) checking the availability of packages, and 2) importing the attributes from Python source files. The new code is fully compatible with Python 2 and 3, and also makes working with loading the attributes from .py files much easier and cleaner.

Merge Checklist