Using a shared python library in Visual Studio -
we have python library needs shared among many projects , we're trying find way organize , link shared library specific projects want use it.
it needs work without visual studio, meaning if whole project moved different machine, still work , use "shared library", means linked library needs placed statically in every project use (and of course each time it's updated, library directory updated in each project)
is there anyway can done?
the directory structure looks this:
project1 main.py <--- (one of projects uses library) ... libs pylib <--- (this shared library) __init__.py ps_lib.py another.py cwinlib cnixlib
some ways i've tested are:
working linked files - problem doesn't copy whole package project (which means doesn't work outside of visual studio)
adding search path - same problem before, doesn't work outside of visual studio
using sys.path.append - means we'll need copy exact directory structure that's in place , want avoid
is there way solve this?
Comments
Post a Comment