[vtkusers] Import time in Python
andrea.gavana at gmail.com
Thu Aug 18 06:22:41 EDT 2016
On 18 August 2016 at 10:33, Andrea Borsic <aborsic at ne-scientific.com> wrote:
> Hi Andrea,
> In my experience this is not uncommon on (modern) Windows computers if
> many installed applications have added their paths to the system path in
> front of the VTK DLLs path. Windows will test many directories searching
> for the DLLs it needs to load.
> Typing "SET" from command line should show you where VTK is in the path.
> Windows adds the user path at the end of the system path, so if VTK was
> manually added to the user path, it might be likely at the very end of a
> long list of other paths.
> The utility Process Monitor (https://technet.microsoft.
> com/en-us/sysinternals/bb896645) can also be used to see all the
> tests/searches the system will perform during "import vtk"
> I hope this might help,
> Best Regards,
Thank you so very much for this suggestion: I have added the VTK DLL path
in front of everything in my user PATH variable and now I get:
D:\MyProjects>python -m cProfile test_import.py
101 function calls in 0.793 seconds
:-D :-D :-D
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers