[Python] Python How to move/centralize pycache files

Discussão em 'Python' iniciado por Stack, Agosto 3, 2025.

  1. Stack

    Stack Membro Participativo

    Below is what my project looks like

    Project
    src
    folder1
    __pycache__
    ...
    folder2
    __pycache__
    ...
    main
    __pycache__

    tests
    __pycache__
    ...


    Is there a way to centralize all the pycache files in one folder so that it looks something like this?

    Project
    __pycache__
    src
    folder1
    folder2
    main
    tests

    Continue reading...

Compartilhe esta Página