Skip to content

Commit

Permalink
Fix GUI bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglongMa committed Jan 17, 2025
1 parent e9a108f commit 01b61b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stone/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def build_arguments():
"-i",
"--images",
nargs="+",
default=[os.getcwd()],
default=[] if in_gui else [os.getcwd()],
metavar="Image Filenames",
help="Image filename(s), Directories or URLs to process. Separated by space.",
**kwargs,
Expand Down Expand Up @@ -432,7 +432,9 @@ def build_arguments():
**kwargs,
)
args = parser.parse_args()
images = args.images or []
images = []
if getattr(args, "images", False):
images.extend(args.images)
if getattr(args, "image_dirs", False):
images.extend(args.image_dirs)
if getattr(args, "image_files", False):
Expand Down

0 comments on commit 01b61b6

Please sign in to comment.