File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 11import sys; exec("try: import labscript_profile; labscript_profile.add_userlib_and_pythonlib()\nexcept ModuleNotFoundError: pass")
2- import sys; exec("try: import labscript_profile; labscript_profile.add_development_directories()\nexcept ModuleNotFoundError: pass")
Original file line number Diff line number Diff line change @@ -58,20 +58,3 @@ def add_userlib_and_pythonlib():
5858 paths = []
5959 for path in paths :
6060 site .addsitedir (path )
61-
62-
63- def add_development_directories ():
64- """Prepend directories in <LABSCRIPT_SUITE_PROFILE>/dev to the search path, if they
65- are listed in the file <LABSCRIPT_SUITE_PROFILE>/dev/enabled (if that file
66- exists)."""
67- if LABSCRIPT_SUITE_PROFILE is None :
68- return
69- dev_dir = LABSCRIPT_SUITE_PROFILE / 'dev'
70- enabled_file = dev_dir / 'enabled'
71- if not os .path .exists (enabled_file ):
72- return
73- with open (enabled_file ) as f :
74- for line in f :
75- repository = dev_dir / line .strip ()
76- if os .path .isdir (repository ):
77- sys .path .insert (0 , repository )
You can’t perform that action at this time.
0 commit comments