Improve Linux terminal input and interactive path prompts
This commit is contained in:
1 parent
eb5937a629
commit
ad2b15994f
5 files changed
+190
-22
No files matched your search
Regular → Executable
+3
-1
@@ -11,7 +11,7 @@ from __future__ import annotations
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from tools.console import pause_if_interactive, prompt_input
|
||||
from tools.console import launch_terminal_if_needed, pause_if_interactive, prompt_input
|
||||
from tools.exiftool import require_exiftool
|
||||
from tools.metadata_copy import copy_meaningful_metadata
|
||||
|
||||
@@ -93,6 +93,8 @@ def run(argv: list[str]) -> int:
|
||||
|
||||
|
||||
def main(argv: list[str]) -> int:
|
||||
if launch_terminal_if_needed(argv):
|
||||
return 0
|
||||
try:
|
||||
return run(argv)
|
||||
finally:
|
||||
|
||||
Reference in new issue
Block a user