Martin Panter added the comment: The code looks like it is trying to find the root of the source code tree, and then chdir() to it and access /Programs/_testembed etc.
In your case the chain of dirname() calls returns an empty string because that root is already the current directory. I would make chdir() conditional: if basepath: os.chdir(basepath) ---------- nosy: +martin.panter _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25800> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com