diff options
| author | morefigs <morefigs@gmail.com> | 2017-08-24 11:09:07 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-24 11:09:07 +1000 |
| commit | 3396cbf5a809635cbe56910cb5cf024b3493301d (patch) | |
| tree | e0502db0e32eed37b267b4249b14c4919329f387 | |
| parent | 2f8e97a5a5d4558136f15f48045f5f5509311e13 (diff) | |
| parent | 0cd664dc2c42c39e9c07ac31dff499370b35cca9 (diff) | |
| download | pymba-3396cbf5a809635cbe56910cb5cf024b3493301d.tar.gz pymba-3396cbf5a809635cbe56910cb5cf024b3493301d.zip | |
Merge pull request #54 from seahawk67/master
Search path for VimbaC DLL extended
| -rw-r--r-- | pymba/vimbadll.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pymba/vimbadll.py b/pymba/vimbadll.py index 68993fb..04fa49f 100644 --- a/pymba/vimbadll.py +++ b/pymba/vimbadll.py @@ -25,6 +25,11 @@ if sys_plat == "win32": if os.path.isfile(candidate): dlls.append(candidate) if not dlls: + if 'VIMBA_HOME' in os.environ: + candidate = os.environ ['VIMBA_HOME'] + '\VimbaC\Bin\Win%i\VimbaC.dll' % (arch) + if os.path.isfile(candidate): + dlls.append(candidate) + if not dlls: raise IOError("VimbaC.dll not found.") return dlls[-1] |
