[Python] Best way to import a configuration variable into a common Python module [closed]

Discussão em 'Python' iniciado por Stack, Setembro 4, 2025.

  1. Stack

    Stack Membro Participativo

    I have two python scripts, A, B, which both import their own configuration files A_config, B_config, and both import a common module C

    The common module C requires a variable defined in the respective configuration file.

    What is the best way to import the required variable into the common module C?

    Continue reading...

Compartilhe esta Página