Jump to content

reloading VW after installing Python modules


Recommended Posts

hey y'all,

 

some of my plugins require the user to pip install some modules into a Python Externals folder that lives the user folder. That part is working great but the user then has to restart VW in order to use them... 

 

is there a way to reload VW without doing a full restart so it knows that those modules are now on the machine and can be used? 

Link to comment

i ended up using importlib and it seems to be working fine. 

 

import importlib
importlib.import_module(module)

 

i do get warning of "pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly"

 

Can't seem to figure out a way to fix that but ill write back if i find a way to suppress that. 

 

thanks to this forum for helping me

https://forum.vectorworks.net/index.php?/topic/52965-pil-python-image-library-for-vw-2018/

Edited by Jayme McColgan
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...