Author: mattip
Branch:
Changeset: r60363:fa8a924ed735
Date: 2013-01-23 10:24 +0200
http://bitbucket.org/pypy/pypy/changeset/fa8a924ed735/
Log: handle case where running from current dir
diff --git a/pypy/test_all.py b/pypy/test_all.py
--- a/pypy/test_all.py
+++ b/pypy/test_all.py
@@ -24,7 +24,7 @@
print >> sys.stderr, __doc__
sys.exit(2)
#Add toplevel repository dir to sys.path
- sys.path.insert(0,os.path.dirname(os.path.dirname(__file__)))
+
sys.path.insert(0,os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
import pytest
import pytest_cov
sys.exit(pytest.main(plugins=[pytest_cov]))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit