Fix TestImport for Windows by ensuring backslashes in the directory paths are properl...
authorAdrian McCarthy <amccarth@google.com>
Thu, 7 Apr 2016 22:52:12 +0000 (22:52 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 7 Apr 2016 22:52:12 +0000 (22:52 +0000)
commitf9f3609704c1f5cdcdc8ef04dfdf5234217d6686
tree75ed48ce2bfb60e3f131f899964421f7a20440f2
parent3a41be277a761d7687a2b860fa045ef5227d6e2d
Fix TestImport for Windows by ensuring backslashes in the directory paths are properly escaped in Python.

The Python import works by ensuring the directory of the module or package is in sys.path, and then it does a Python `import foo`.  The original code was not escaping the backslashes in the directory path, so this wasn't working.

Differential Revision: http://reviews.llvm.org/D18873

llvm-svn: 265738
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp