[Python] Check if configfile has a value

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    Is there any way to check if some configfile was already given?

    I have a script where some parameters can be passed through the --config flag, so config is not empty, but I want to check specifically if the user passed a file to the --configfile flag (or at least check if a configfile is given at some point in the code).

    The idea is that if no configfile was specified, a default configfile will be used.

    Continue reading...

Compartilhe esta Página