dfieschko / RP1210

A Python32 implementation of the RP1210C standard. Now with 100% test coverage!
MIT License
20 stars 12 forks source link

Allow RP1210Config and RP1210API to load files from alternate directories #50

Closed dfieschko closed 2 years ago

dfieschko commented 2 years ago

The biggest issue we have with automating tests for this package is that RP1210 drivers need to be installed on the system for the tests to be run on them. If we make it possible to run tests on files in the Test folder, that will allow us to migrate a lot of the tests to GitHub's servers.

dfieschko commented 2 years ago

This is how an application loads RP1210 config and .dll files:

  1. Reads C:\Windows\RP121032.ini, which contains the names of all the RP1210 adapter drivers that are currently installed
  2. Reads through all the C:\Windows{FILENAME}.ini files for adapter info
  3. Populates a dropdown with adapter info for the user to select between adapters
  4. After the user selects an adapter to connect to, it loads the proper driver .DLL from C:\Windows\System32 or C:\Windows\SysWOW64

We want the option of loading files from alternate directories instead of just C:\Windows.