Skip to content

Instantly share code, notes, and snippets.

@jakab922
Created January 8, 2014 13:24
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 jakab922/8316701 to your computer and use it in GitHub Desktop.
Save jakab922/8316701 to your computer and use it in GitHub Desktop.
sys path manipulation
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