ni / niflexlogger-automation-python

The niflexlogger-automation package contains an API (Application Programming Interface) and examples for using Python to automate NI FlexLogger. The automation API supports modifying the configuration of existing FlexLogger projects and controlling the execution of FlexLogger test sessions. The package is implemented in Python. NI created and supports this package.
MIT License
8 stars 6 forks source link

Move win32api imports into methods #12

Closed gregstoll closed 3 years ago

gregstoll commented 3 years ago

What does this Pull Request accomplish?

Move all Windows-specific imports out of the general imports section and into the methods they are needed in.

Why should this Pull Request be merged?

This means that non-Windows machines can successfully import our package, which is necessary for readthedocs's automodule support. Hopefully this will fix the API reference documentation there.

What testing has been done?

Was able to run tests (including code style ones) and generate correct documentation locally. (although it was already working on my Windows system) Ran a few quick sanity checks to ensure that the Windows-specific functionality worked.