Skip to content

Expand file globs in command line arguments #82

@mauritsvanrees

Description

@mauritsvanrees

This command works, because the shell automatically expands the star before passing it to i18ndude:

i18ndude sync --pot locales/plone.pot locales/*/LC_MESSAGES/plone.po

The same command in tox fails, because tox does not do expansion:

$ cat tox.ini
...
[testenv:locales]
basepython = python3
skip_install = true
deps =
    i18ndude
commands =
    i18ndude sync --pot locales/plone.pot locales/*/LC_MESSAGES/plone.po
$ tox -e locales
...
locales run-test: commands[1] | i18ndude sync --pot locales/plone.pot 'locales/*/LC_MESSAGES/plone.po'
Warning: locales/*/LC_MESSAGES/plone.po is not a file or is ignored.

When I replace the star with nl the tox command works fine for the Dutch locale.

See https://stackoverflow.com/a/62113401/621201, also for basic glob code example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions