python - How to place all 3rd party libraries at one folder? -
i've downloaded google apis client library python, comes 4 subfolders: apiclient, httplib2, oauth2client, uritemplate. placed in root folder like:
apiclient httplib2 oauth2client uritemplate app.yaml ...
and used below:
import httplib2 apiclient.discovery import build
but move them 1 folder like:
lib apiclient httplib2 oauth2client uritemplate app.yaml ...
how import
should in case?
this has been asked heaps , heaps of times. client library no different other 3rd party library.
modify sys.path include lib, or site.add_sitedir
do path manipulation in appengine_config.py - see docs - file, loaded before of code. https://developers.google.com/appengine/docs/python/tools/appengineconfig
then import statement same.
Comments
Post a Comment