Created
January 8, 2014 13:24
-
-
Save jakab922/8316701 to your computer and use it in GitHub Desktop.
sys path manipulation
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 sys | |
import os | |
from os.path import join | |
from mock import Mock, patch | |
from twisted.internet import defer | |
src_path = os.path.realpath(join(os.path.dirname(__file__), "../src/")) | |
current_path = os.path.realpath(os.path.dirname(__file__)) | |
sys.path.insert(0, current_path) | |
sys.path.insert(0, src_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment