Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions corridorkey_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ def interactive_wizard(win_path: str, device: str | None = None) -> None:
# 1. Resolve Path
console.print(f"Windows Path: {win_path}")

# Perform a check, if we expect user to provide us directory,
# but accidentially gave us the path to the footage instead,
# we should presume the parent folder as substitution instead.
if os.path.isfile(win_path):
win_path = os.path.abspath(os.path.join(win_path, os.pardir))

if os.path.exists(win_path):
process_path = win_path
console.print(f"Running locally: [bold]{process_path}[/bold]")
Expand Down