core-cli: fixed xml load call to use the right parameter type
This commit is contained in:
parent
d684b8eb5a
commit
5398cdd2d5
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue