import site
import os.path

# add `lib` subdirectory as a site packages directory, so our `main` module can load
# third-party libraries.
site.addsitedir(os.path.join(os.path.dirname(__file__), 'lib'))

from google.appengine.ext import vendor
vendor.add('lib')

Use a newer method for specifying the vendored packages directory.
Use a newer method for specifying the vendored packages directory.

- import site
- import os.path
+ from google.appengine.ext import vendor
+ vendor.add('lib')
  
- # add `lib` subdirectory as a site packages directory, so our `main` module can load
- # third-party libraries.
- site.addsitedir(os.path.join(os.path.dirname(__file__), 'lib'))
- 
Use a newer method for specifying the vendored packages directory.
## Code Before:
import site
import os.path

# add `lib` subdirectory as a site packages directory, so our `main` module can load
# third-party libraries.
site.addsitedir(os.path.join(os.path.dirname(__file__), 'lib'))

## Instruction:
Use a newer method for specifying the vendored packages directory.
## Code After:
from google.appengine.ext import vendor
vendor.add('lib')
