--- ./test/test_bridge.py.orig 2016-10-29 18:01:58.973264803 +0200 +++ ./test/test_bridge.py 2016-10-29 18:23:12.121334058 +0200 @@ -8,11 +8,12 @@ """Run bridge unit tests for cclib.""" import sys +import os import unittest if __name__ == "__main__": - sys.path.append("bridge") + sys.path.append(os.path.dirname(__file__) + "/bridge") from testopenbabel import * unittest.main() --- ./test/test_io.py.orig 2016-10-29 18:24:25.069338027 +0200 +++ ./test/test_io.py 2016-10-29 18:25:01.829340026 +0200 @@ -8,9 +8,10 @@ """Run writer unit tests for cclib.""" import sys +import os import unittest -sys.path.append('io') +sys.path.append(os.path.dirname(__file__) + "/io") from testccio import * from testfilewriter import * from testxyzwriter import * --- ./test/test_parser.py.orig 2016-10-29 18:25:29.477341530 +0200 +++ ./test/test_parser.py 2016-10-29 18:25:46.165342438 +0200 @@ -8,9 +8,10 @@ """Run parser unit tests for cclib.""" import sys +import os import unittest -sys.path.append('parser') +sys.path.append(os.path.dirname(__file__) + "/parser") from testdata import * from testlogfileparser import * from testutils import * --- ./test/test_method.py.orig 2016-10-29 18:26:12.897343892 +0200 +++ ./test/test_method.py 2016-10-29 18:26:30.017344823 +0200 @@ -8,12 +8,13 @@ """Run method unit tests for cclib.""" import sys +import os import unittest if __name__ == "__main__": - sys.path.append("method") + sys.path.append(os.path.dirname(__file__) + "/method") from testcda import * from testmbo import * from testnuclear import *