@@ -245,7 +245,7 @@ def pull_board(args: tuple) -> bool:
245245 else :
246246 update_status (
247247 pkg_name ,
248- f"Installation failed! " f" Expected commit { commit } but got { read_commit } " ,
248+ f"Installation failed! Expected commit { commit } but got { read_commit } " ,
249249 "red" ,
250250 )
251251 return False
@@ -275,11 +275,11 @@ def pull_board(args: tuple) -> bool:
275275 sys .exit (1 )
276276
277277
278- def install_pyxsi ():
278+ def install_pyxsi () -> bool :
279279 # TODO: integrate properly into the rich.Live above?
280280 # Will soon be replaced by finnXSI
281- pyxsi_path = os . path . join ( get_deps_path (), "pyxsi" )
282- pyxsi_so_path = os . path . join ( pyxsi_path , "pyxsi.so" )
281+ pyxsi_path = get_deps_path () / "pyxsi"
282+ pyxsi_so_path = pyxsi_path / "pyxsi.so"
283283
284284 # Disable PyXSI makefile Docker wrapper
285285 os .environ ["PYXSI_MAKE_USE_DOCKER" ] = "0"
@@ -291,11 +291,13 @@ def install_pyxsi():
291291 return False
292292
293293 # Check if .so was created
294- if not os . path . isfile ( pyxsi_so_path ):
294+ if not pyxsi_so_path . exists ( ):
295295 return False
296296
297297 # Set environment variables
298298 os .environ ["PYTHONPATH" ] = f"{ os .environ ['PYTHONPATH' ]} :{ pyxsi_path } :{ pyxsi_path } /py"
299+ sys .path .append (str (pyxsi_path ))
300+ sys .path .append (str (pyxsi_path / "py" ))
299301 vivado_path = os .environ ["XILINX_VIVADO" ]
300302 if "LD_LIBRARY_PATH" not in os .environ .keys ():
301303 os .environ ["LD_LIBRARY_PATH" ] = f"/lib/x86_64-linux-gnu/:{ vivado_path } /lib/lnx64.o"
0 commit comments