Skip to content

Commit

Permalink
Fix issue with wrong default path
Browse files Browse the repository at this point in the history
Reading from config and converting to a Path objects within the
constructor parameter list caused an issue where the Path object was
just a "." and not the full path.
  • Loading branch information
oysand committed Nov 30, 2021
1 parent 983911a commit fa48883
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/isar/mission_planner/local_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@

class LocalPlanner(MissionPlannerInterface):
@inject
def __init__(
self,
transform: Transformation,
predefined_mission_folder: Path = Path(
def __init__(self, transform: Transformation):
self.predefined_mission_folder = Path(
config.get("DEFAULT", "predefined_missions_folder")
),
):
self.predefined_mission_folder = predefined_mission_folder
)
self.transform: Transformation = transform

def get_mission(self, mission_id) -> Mission:
Expand Down

0 comments on commit fa48883

Please sign in to comment.