07-20-2021 01:42 PM
Is there a way to extend Python Autocomplete for user-specific DIAdem to directories other than Site-Packages?
For example, in VSC you can edit the settings.json to add paths to:
So stuff imported from "C:\Repositories\Python\MyLibraryOther\__init__.py" is directly visible on import alongside stuff in SitePackages:
I've been able to add further locations to the active DIAdem Python Path via:
import site
site.addsitedir('C:/Repositories/Python/')
With that, I can "use" the script contents from both "Other" and "Site-Packages" items:
But I can only "see" items located within the Site-Packages folder:
-Josh Rewerts
Solved! Go to Solution.
08-18-2021 07:56 AM
Hi Josh,
R&D says, "Currently only packages installed under the "normal" Python path are included in the autocomplete. But it would be possible to retrofit something like this as a feature in a future release."
Would you be willing to add that to the DIAdemIdeas page? Suggestions always mean more coming straight from customers...
Good to hear from you,
Brad Turpin
Principal Technical Support Engineer
NI
02-04-2022 01:37 PM