Shamelessly stolen from Kenneth Reitz.
Last active
April 12, 2017 20:00
-
-
Save chrisvoncsefalvay/7e22bfeb5f935a21e1047fa91040a009 to your computer and use it in GitHub Desktop.
Context importing in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) | |
import sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .context import sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment