Skip to content

Commit

Permalink
ensure code from src dir is used
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Feb 12, 2017
1 parent f027342 commit d1579b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os
import sys

f = os.readlink(__file__) if os.path.islink(__file__) else __file__
path = os.path.realpath(os.path.join(f, "..", "..", "src"))

if path not in sys.path:
sys.path.append(path)
sys.path.insert(0, path)

0 comments on commit d1579b4

Please sign in to comment.