MideTechnology / idelib

Python API for accessing .IDE data recordings made by enDAQ devices.
MIT License
5 stars 0 forks source link

Add `./schemata/` to `ebmlite.SCHEMA_PATH` #120

Closed StokesMIDE closed 2 years ago

StokesMIDE commented 2 years ago

To ensure the correct schemata are loaded, idelib should add its own schema path to ebmlite.SCHEMA_PATH.

One possible implementation is to add this to __init__.py:

import ebmlite

if "{idelib}/schemata" not in ebmlite.SCHEMA_PATH:
    ebmlite.SCHEMA_PATH.insert(0, "{idelib}/schemata")
StokesMIDE commented 2 years ago

Being addressed in PR #121