I want to import the Pillow module. But I have to install it just into the folder of the script which is using it. I tried to set a search path and import it:
sWorkDir = os.path.dirname(os.path.realpath(__file__))
print (sWorkDir)
sys.path.append(sWorkDir+"\\PIL_LOC")
sys.path.append(sWorkDir+"\\PIL_LOC\PIL")
import Image
Unfortunately, I get a
from . import VERSION, PILLOW_VERSION, _plugins
ImportError: attempted relative import with no known parent package