labscript_profile.add_userlib_and_pythonlib

labscript_profile.add_userlib_and_pythonlib()[source]

Find the users’s labconfig file, read the userlib and pythonlib keys, and add those directories to the Python search path. This function intentionally re-implements finding and reading the config file so as to not import labscript_utils, since we dont’ want to import something like labscript_utils every time the interpreter starts up