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 1
1
import os
2
2
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 :
7
12
from .keysite_exceptions import KeysightSD1Error as KeysightM3302ADAQ
8
13
from .keysite_exceptions import KeysightSD1Error as KeysightM3302AAWG
9
14
Original file line number Diff line number Diff line change 7
7
try :
8
8
import keysightSD1
9
9
except :
10
- print ('Could not load Keysight SD1' )
10
+ # print('Could not load Keysight SD1')
11
+ pass
11
12
12
13
13
14
class KeysightM3302ADAQ (ItemAttribute ):
You can’t perform that action at this time.
0 commit comments