diff options
| author | Derric Williams <derricw@gmail.com> | 2015-12-02 13:53:06 -0800 |
|---|---|---|
| committer | Derric Williams <derricw@gmail.com> | 2015-12-02 13:53:06 -0800 |
| commit | 9b29a773a4358ef03d15ebc8a1681747cae97138 (patch) | |
| tree | 7f98e2ebba04cdc597866bc98ea29dc3b913a948 | |
| parent | 89ba325cdae101279afbb6ab3f7e856667d769e9 (diff) | |
| download | pymba-9b29a773a4358ef03d15ebc8a1681747cae97138.tar.gz pymba-9b29a773a4358ef03d15ebc8a1681747cae97138.zip | |
Added IO Error for dll not found
| -rw-r--r-- | pymba/vimbadll.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pymba/vimbadll.py b/pymba/vimbadll.py index b1201a3..c1d9430 100644 --- a/pymba/vimbadll.py +++ b/pymba/vimbadll.py @@ -12,6 +12,8 @@ if sys_plat == "win32": """ Finds the highest versioned windows dll for the specified architecture. """ base = r'C:\Program Files\Allied Vision Technologies\AVTVimba_1.%i\VimbaC\Bin\Win%i\VimbaC.dll' dlls = [base % (i, arch) for i in range(10) if os.path.isfile(base % (i, arch)) ] + if not dlls: + raise IOError("VimbaC.dll not found.") return dlls[-1] from ctypes.util import find_msvcrt |
