diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2009-06-21 19:47:40 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2009-06-21 19:47:40 +0200 |
| commit | af3c47a5a5410ac48284e118d7f1c0fd7cfbd18a (patch) | |
| tree | 134a3cddfc92a3f417c84c119662cb5d58322b62 | |
| parent | 050e2e6b3b2f41f30c2a4037fd3fb059131d771d (diff) | |
| download | sqlparse-af3c47a5a5410ac48284e118d7f1c0fd7cfbd18a.tar.gz | |
Only add full path to test module if it isn't already in sys.path.
| -rwxr-xr-x | tests/run_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py index 7240f2f..7c01d49 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -8,7 +8,9 @@ import os import sys import unittest -sys.path.insert(1, os.path.join(os.path.dirname(__file__), '../')) +test_mod = os.path.abspath(os.path.join(os.path.dirname(__file__), '../')) +if test_mod not in sys.path: + sys.path.insert(1, test_mod) parser = optparse.OptionParser() |
