File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11import os
22
3- if os .path .exists (r'c:\Program Files (x86)\Keysight\SD1\Libraries\Python' ):
4- from .keysightm3302adaq import KeysightM3302ADAQ
5- from .keysightm3302aawg import KeysightM3302AAWG
6- else :
3+
4+ try :
5+ if os .path .exists (r'c:\Program Files (x86)\Keysight\SD1\Libraries\Python' ):
6+ from .keysightm3302adaq import KeysightM3302ADAQ
7+ from .keysightm3302aawg import KeysightM3302AAWG
8+ else :
9+ from .keysite_exceptions import KeysightSD1Error as KeysightM3302ADAQ
10+ from .keysite_exceptions import KeysightSD1Error as KeysightM3302AAWG
11+ except FileNotFoundError :
712 from .keysite_exceptions import KeysightSD1Error as KeysightM3302ADAQ
813 from .keysite_exceptions import KeysightSD1Error as KeysightM3302AAWG
914
Original file line number Diff line number Diff line change 77try :
88 import keysightSD1
99except :
10- print ('Could not load Keysight SD1' )
10+ # print('Could not load Keysight SD1')
11+ pass
1112
1213
1314class KeysightM3302ADAQ (ItemAttribute ):
You can’t perform that action at this time.
0 commit comments