Properly handle CLI glob arguments on Windows
Following from `wwt_data_formats`. It turns out that we need to manually implement them for Windows cmd.
This commit is contained in:
Родитель
b1e8b544b3
Коммит
f5389e0052
2
setup.py
2
setup.py
|
@ -78,7 +78,7 @@ setup_args = dict(
|
|||
'pillow>=7.0',
|
||||
'PyYAML>=5.0',
|
||||
'tqdm>=4.0',
|
||||
'wwt_data_formats>=0.7.0',
|
||||
'wwt_data_formats>=0.9.1',
|
||||
],
|
||||
|
||||
extras_require = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
# Copyright 2019-2020 the AAS WorldWide Telescope project.
|
||||
# Copyright 2019-2021 the AAS WorldWide Telescope project.
|
||||
# Licensed under the MIT License.
|
||||
|
||||
"""Entrypoint for the "toasty" command-line interface.
|
||||
|
@ -17,6 +17,7 @@ warn
|
|||
import argparse
|
||||
import os.path
|
||||
import sys
|
||||
from wwt_data_formats.cli import EnsureGlobsExpandedAction
|
||||
|
||||
|
||||
# General CLI utilities
|
||||
|
@ -129,6 +130,7 @@ def multi_tan_make_data_tiles_getparser(parser):
|
|||
parser.add_argument(
|
||||
'paths',
|
||||
metavar = 'PATHS',
|
||||
action = EnsureGlobsExpandedAction,
|
||||
nargs = '+',
|
||||
help = 'The FITS files with image data',
|
||||
)
|
||||
|
|
|
@ -16,6 +16,7 @@ from fnmatch import fnmatch
|
|||
import glob
|
||||
import os.path
|
||||
import sys
|
||||
from wwt_data_formats.cli import EnsureGlobsExpandedAction
|
||||
|
||||
from ..cli import die, warn
|
||||
from . import NotActionableError
|
||||
|
@ -61,6 +62,7 @@ def approve_setup_parser(parser):
|
|||
parser.add_argument(
|
||||
'cand_ids',
|
||||
nargs = '+',
|
||||
action = EnsureGlobsExpandedAction,
|
||||
metavar = 'IMAGE-ID',
|
||||
help = 'Name(s) of image(s) to approve for publication (globs accepted)'
|
||||
)
|
||||
|
@ -119,6 +121,7 @@ def fetch_setup_parser(parser):
|
|||
parser.add_argument(
|
||||
'cand_ids',
|
||||
nargs = '+',
|
||||
action = EnsureGlobsExpandedAction,
|
||||
metavar = 'CAND-ID',
|
||||
help = 'Name(s) of candidate(s) to fetch and prepare for processing (globs accepted)'
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче