Probably the best place is src/3rdParty. This should be done for all external packages that are copied to our source tree, although I think this is not followed strictly, as some workbenches include third party code inside its own src/Mod/ directory.
Code: Select all
def some_operation(): import Part do_something(Part.Face()) ...
What types of imports? From Path itself or from other workbenches. I don't know how exactly the workbench is setup, but last time I took a look at it, it had plenty of modules, and classes upon classes.
Path Job Gui import Draft and DraftVecUtils, PathJob and several other modules import ArchPanel, etc. A lot of the modules only used the imported workbenches for a single function, so I moved those down in to the function body for testing, but it wasn't always the case. Also I'd like to keep the imports at the top of the file, mainly for readability.
Can you post the repo that you are conducting these tests in so we can see the code before you submit a PR ?
I think you can install it to the Ext/ directory. It's supposed to be in the Python path.