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:
parent
7cf32c4e7c
commit
d3280474c3
@ -449,7 +449,7 @@ def run(filepath):
|
|||||||
"__file__": filepath,
|
"__file__": filepath,
|
||||||
"__name__": "__main__",
|
"__name__": "__main__",
|
||||||
})
|
})
|
||||||
with filepath.open('rb') as file:
|
with open(filepath, 'rb') as file:
|
||||||
# pylint: disable=exec-used
|
# pylint: disable=exec-used
|
||||||
exec(compile(file.read(), filepath, 'exec'), clientenv.namespace, None)
|
exec(compile(file.read(), filepath, 'exec'), clientenv.namespace, None)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user