1818@contextlib .contextmanager
1919def julabo_simulation ():
2020 command = [
21- "python" ,
21+ "uv" ,
22+ "run" ,
2223 str (LEWIS_PATH ),
2324 "julabo" ,
2425 "-p" ,
@@ -33,7 +34,7 @@ def julabo_simulation():
3334
3435
3536def run_control_command (mode , command , value ):
36- subprocess .check_output (["python " , str (LEWIS_CONTROL_PATH ), mode , command , value ]).decode ()
37+ subprocess .check_output (["uv " , "run" , str (LEWIS_CONTROL_PATH ), mode , command , value ], env = os . environ ).decode ()
3738
3839
3940def santise_whitespace (input_str ):
@@ -42,7 +43,7 @@ def santise_whitespace(input_str):
4243
4344def query_device_status ():
4445 return santise_whitespace (
45- subprocess .check_output (["python " , str (LEWIS_CONTROL_PATH ), "device" ]).decode ()
46+ subprocess .check_output (["uv " , "run" , str (LEWIS_CONTROL_PATH ), "device" ], env = os . environ ).decode ()
4647 )
4748
4849
@@ -56,7 +57,7 @@ def test_list_available_devices(self):
5657 When: running Lewis without parameters
5758 Then: returns a list of possible simulations
5859 """
59- result = santise_whitespace (subprocess .check_output (["python " , str (LEWIS_PATH )]).decode ())
60+ result = santise_whitespace (subprocess .check_output (["uv" , "run " , str (LEWIS_PATH )]).decode ())
6061
6162 verify (result , self .reporter )
6263
0 commit comments