core-cli: fixed xml load call to use the right parameter type

This commit is contained in:
Blake Harnden 2022-03-21 15:57:13 -07:00
parent d684b8eb5a
commit 5398cdd2d5

View file

@ -94,11 +94,11 @@ def geo_type(value: str) -> Tuple[float, float, float]:
return lon, lat, alt return lon, lat, alt
def file_type(value: str) -> str: def file_type(value: str) -> Path:
path = Path(value) path = Path(value)
if not path.is_file(): if not path.is_file():
raise ArgumentTypeError(f"invalid file: {value}") raise ArgumentTypeError(f"invalid file: {value}")
return str(path.absolute()) return path
def get_current_session(core: CoreGrpcClient, session_id: Optional[int]) -> int: def get_current_session(core: CoreGrpcClient, session_id: Optional[int]) -> int: