File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ def add_userlib_and_pythonlib():
49
49
time the interpreter starts up"""
50
50
labconfig = default_labconfig_path ()
51
51
if labconfig is not None and labconfig .exists ():
52
- config = ConfigParser (defaults = {'labscript_suite' : LABSCRIPT_SUITE_PROFILE })
52
+ # str() below is for py36 compat, where ConfigParser can't deal with Path objs
53
+ config = ConfigParser (
54
+ defaults = {'labscript_suite' : str (LABSCRIPT_SUITE_PROFILE )}
55
+ )
53
56
config .read (labconfig )
54
57
for option in ['userlib' , 'pythonlib' ]:
55
58
try :
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ def __init__(
43
43
required_params = {}
44
44
if defaults is None :
45
45
defaults = {}
46
- defaults ['labscript_suite' ] = LABSCRIPT_SUITE_PROFILE
46
+ # str() below is for py36 compat, where ConfigParser can't deal with Path objs
47
+ defaults ['labscript_suite' ] = str (LABSCRIPT_SUITE_PROFILE )
47
48
if isinstance (config_path , list ):
48
49
self .config_path = config_path [0 ]
49
50
else :
You can’t perform that action at this time.
0 commit comments