PY-27636: Add cwd to pythonpath's head instead of tail

current workdir must be inserted at position 0, not at
the last position because local files (like "test.py") must have priority over site-lib
This commit is contained in:
Ilya.Kazakevich
2018-04-04 23:57:06 +03:00
parent 5d35843984
commit 9a82e20592
3 changed files with 54 additions and 17 deletions
@@ -31,5 +31,5 @@ if __name__ == '__main__':
args += additional_args
jb_doc_args("unittests", args)
# Working dir should be on path, that is how unittest work when launched from command line
sys.path.append(os.getcwd())
sys.path.insert(0, os.getcwd())
main(argv=args, module=None, testRunner=unittestpy.TeamcityTestRunner, buffer=not JB_DISABLE_BUFFERING)