Skip to content

Can I prefer my own code when there are duplicated module names? #248

Closed Answered by pawamoy
jwarwick-delfi asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks! Found the issue. We build the list of search paths by concatenating the user provided paths to sys.path. But when inserting in the final list, we check if the path is not already present, and in this case, it's already present, but in last position. In the end site-packages had precedence over the current folder. Will push a fix to mkdocstrings-python right now 🙂

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@jwarwick-delfi
Comment options

@pawamoy
Comment options

Answer selected by pawamoy
@pawamoy
Comment options

Comment options

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

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