Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 14a6148

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

File tree

Expand file treeCollapse file tree

4 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-3
lines changed

‎spatialmath/base/quaternions.py

Copy file name to clipboardExpand all lines: spatialmath/base/quaternions.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: spatialmath/base/transformsNd.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: spatialmath/base/vectors.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.