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 <markus.zolliker@psi.ch>
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
This commit is contained in:
zolliker 2025-05-13 12:53:46 +02:00
parent 7cf32c4e7c
commit d3280474c3

View File

@ -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)