Skip to content

Instantly share code, notes, and snippets.

@ErDmKo
Created October 24, 2015 11:55
Show Gist options
  • Save ErDmKo/5f786d0e4239bb4818dc to your computer and use it in GitHub Desktop.
Save ErDmKo/5f786d0e4239bb4818dc to your computer and use it in GitHub Desktop.
__init__.py
import os
PATH = os.path.realpath(os.path.dirname(__file__))
if os.environ.get('PYTHONPATH'):
from .heroku import *
elif os.path.exists(os.path.join(PATH, 'local.py')):
from .local import *
else:
from .base import *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment