Skip to content

Instantly share code, notes, and snippets.

@dolph
Created April 16, 2014 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolph/10940604 to your computer and use it in GitHub Desktop.
Save dolph/10940604 to your computer and use it in GitHub Desktop.
Lazily import dependency package
@property
def access_token(self):
if self._access_token is None:
from contrib import oauth1
self._access_token = oauth1.Whatever()
return self._access_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment