8000 replace runfile with native commands · RPellowski/spatialmath-python@14a6148 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14a6148

Browse files
committed
replace runfile with native commands
rename test file to be consistent
1 parent 4c9fb7b commit 14a6148

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

spatialmath/base/quaternions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,4 +576,4 @@ def qprint(q, delim=('<', '>'), fmt='%f', file=sys.stdout):
576576
import pathlib
577577
import os.path
578578

579-
runfile(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_quaternion.py") )
579+
exec(open(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_quaternions.py")).read() )

spatialmath/base/transformsNd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def e2h(v):
514514
import pathlib
515515
import os.path
516516

517-
runfile(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_transforms.py") )
517+
exec(open(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_transforms.py")).read() )
518518

519519

520520

spatialmath/base/vectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def angdiff(a, b):
233233
import pathlib
234234
import os.path
235235

236-
runfile(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_transforms.py") )
236+
exec(open(os.path.join(pathlib.Path(__file__).parent.absolute(), "test_transforms.py")).read() )
237237

238238

239239

0 commit comments

Comments
 (0)
0