[Lldb-commits] [lldb] r141817 - /lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit

Johnny Chen johnny.chen at apple.com
Wed Oct 12 14:51:58 PDT 2011


Author: johnny
Date: Wed Oct 12 16:51:58 2011
New Revision: 141817

URL: http://llvm.org/viewvc/llvm-project?rev=141817&view=rev
Log:
Prepend '~' to the sys.path so that ~/utils.py takes precedence.

Modified:
    lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit

Modified: lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit?rev=141817&r1=141816&r2=141817&view=diff
==============================================================================
--- lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit (original)
+++ lldb/trunk/examples/customization/pwd-cd-and-system/.lldbinit Wed Oct 12 16:51:58 2011
@@ -1,5 +1,6 @@
 script import os, sys
-script sys.path.append(os.path.expanduser('~'))
+# So that ~/utils.py takes precedence.
+script sys.path[:0] = [os.path.expanduser('~')]
 script import utils
 command alias pwd script print os.getcwd()
 command script add -f utils.chdir cd





More information about the lldb-commits mailing list