1👍
Tested it with local files, and it seems, when you override a package by creating a package in override
with same name and __init__.py
inside, it overrides the whole original package, not just the files you’ve created. So you have to copy all the files from that package.
And if you don’t specify __init__.py
, python doesn’t recognize your package and imports the original.
I think, the best way here is to fork the original package’s repo, change it, and use the fork in your project. Also consider creating a PR to the original repo if you think your changes might be useful to others.
Source:stackexchange.com