From 4bca809145a95c6a4f902bcbbed6d3a9c9e9ee99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Fri, 10 Mar 2023 05:32:28 +0000 Subject: [PATCH] Replace path obj .remove call with .unlink --- jlmkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index 22c2894..097aeb2 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -81,7 +81,7 @@ def passthrough_nvidia(gpu_passthrough_nvidia, systemd_nspawn_additional_args, j if gpu_passthrough_nvidia != '1': # Cleanup the config file we made when passthrough was enabled - ld_so_conf_path.remove(missing_ok=True) + ld_so_conf_path.unlink(missing_ok=True) return try: