Skip to content

Commit

Permalink
core-cli: fixed xml load call to use the right parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
bharnden committed Mar 21, 2022
1 parent d684b8e commit 5398cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/scripts/core-cli
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ def geo_type(value: str) -> Tuple[float, float, float]:
return lon, lat, alt


def file_type(value: str) -> str:
def file_type(value: str) -> Path:
path = Path(value)
if not path.is_file():
raise ArgumentTypeError(f"invalid file: {value}")
return str(path.absolute())
return path


def get_current_session(core: CoreGrpcClient, session_id: Optional[int]) -> int:
Expand Down

0 comments on commit 5398cdd

Please sign in to comment.