Skip to content

Commit

Permalink
Use ni backend when specifying a file in open_visa_library (#373)
Browse files Browse the repository at this point in the history
* Use ni backend when specifying a file in open_visa_library
* Updated CHANGES
  • Loading branch information
lupien authored and MatthieuDartiailh committed Oct 22, 2018
1 parent 7f26022 commit c7054f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -9,6 +9,7 @@ PyVISA Changelog
- added new function log_to_stream() PR #363
- Made all enumerations of the `constants` module unique.
Fixed duplicate enums in StatusCode PR #371
- Use ni backend when specifying a file in open_visa_library PR #373


1.9.1 (2018-08-13)
Expand Down
5 changes: 4 additions & 1 deletion pyvisa/highlevel.py
Expand Up @@ -1490,7 +1490,10 @@ def open_visa_library(specification):
argument = specification
wrapper = None # Flag that we need a fallback, but avoid nested exceptions
if wrapper is None:
wrapper = _get_default_wrapper()
if argument: # some filename given
wrapper = 'ni'
else:
wrapper = _get_default_wrapper()

cls = get_wrapper_class(wrapper)

Expand Down

0 comments on commit c7054f4

Please sign in to comment.