Skip to content

Where the stubs are stored? #352

Answered by BradenM
fcasals asked this question in Q&A
Dec 15, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @fcasals,

So I'm assuming that micropy uses a common location to store the stubs, at OS/User level or local interpeter level.

Your assumption is correct. micropy maintains a central local repository of stubs that is located under a .micropy/stubs folder that is created in the platform dependent user home directory1.

Generally speaking, this means:

  • ~/.micropy/stubs/ on *nix platforms
  • c:\Users\MyUser\.micropy\stubs on windows platforms.

When executing micropy add, micropy will:

  1. Ensure the stub exists in the central stubs repository (retrieving it if necessary).

  2. Check if the current working directory is a micropy-enabled project:

    • If it is a micropy project, also associate the st…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fcasals
Comment options

Answer selected by fcasals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants