From d3280474c3766a929fbb0f0eaf10fc8c572890ce Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 13 May 2025 12:53:46 +0200 Subject: [PATCH] frappy.client.interactive: no pathlib needed here allow the argument of the run function to be a simple string Change-Id: I1d5de3802b6adc22a01a262d4cb017bf7dd084c5 Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/36343 Reviewed-by: Markus Zolliker Tested-by: Jenkins Automated Tests --- frappy/client/interactive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappy/client/interactive.py b/frappy/client/interactive.py index 4cd377d..ebc6e59 100644 --- a/frappy/client/interactive.py +++ b/frappy/client/interactive.py @@ -449,7 +449,7 @@ def run(filepath): "__file__": filepath, "__name__": "__main__", }) - with filepath.open('rb') as file: + with open(filepath, 'rb') as file: # pylint: disable=exec-used exec(compile(file.read(), filepath, 'exec'), clientenv.namespace, None)