Skip to content

Commit 33d62af

Browse files
author
Atsushi Sakai
committed
update import for travis
1 parent b14a97f commit 33d62af

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

PathPlanning/RRT/rrt_with_pathsmoothing.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77
"""
88

99
import math
10+
import os
1011
import random
12+
import sys
1113

1214
import matplotlib.pyplot as plt
1315

14-
from rrt import RRT
16+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
17+
18+
try:
19+
from rrt import RRT
20+
except ImportError:
21+
raise
1522

1623
show_animation = True
1724

PathPlanning/RRTStar/rrt_star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"/../RRT/")
1818

1919
try:
20-
from RRT.rrt import RRT
20+
from rrt import RRT
2121
except ImportError:
2222
raise
2323

0 commit comments

Comments
 (0)