8000 debug GH · lars-x/robotics-toolbox-python@1192726 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 1192726

Browse files
committed
debug GH
1 parent 8b5af39 commit 1192726
Copy full SHA for 1192726

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roboticstoolbox/tools/data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,22 @@ def path_to_datafile(filename):
7676
print("path_to_data: ", filename, __file__)
7777
filename = Path(filename)
7878

79+
import os
80+
7981
if filename.parent == Path():
8082
# just a filename, no path, assume it is in roboticstoolbox/data
8183
p = Path(__file__).parent.parent / 'data' / filename
8284
print(f"p={p}")
85+
print(p.exists(), os.path.exists(str(p)))
8386
if p.exists():
8487
print(f"returning")
8588
return str(p.resolve())
8689

8790

8891
p = filename.expanduser()
92+
print(f"continuing, filename={filename}, p={p}")
8993
p = p.resolve()
90-
print(f"continuing p={p}")
94+
print(f"after resolve p={p}")
9195
if not p.exists():
9296
print(f"File '{p}' does not exist")
9397
raise FileNotFoundError(f"File '{p}' does not exist")

0 commit comments

Comments
 (0)
0