import Python plugins from a folder -


i want put python script module script pil on server. server might not have pil installed. (this why want load file myself)

if possible, how can have python script import image library current directory of script without having installed on machine?


using python virtual machine using v2.7 of python locally, on server.

one option import modules relative path described here.

it possible use virtual environments pack need , don´t mess python installations on server. here , here

other references:

  1. loading modules in folder in python
  2. how relative imports in python?

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -