diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-10-12 21:51:58 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-10-12 21:51:58 +0000 |
commit | 724e62bb4a23bbc81589580f99e46d00e3f21dc2 (patch) | |
tree | 02268b3c34ab954b7add1056dbd71812ef57e27d | |
parent | c53220134a2c4e09606f2eb35c3763ec33f24edb (diff) | |
download | bcm5719-llvm-724e62bb4a23bbc81589580f99e46d00e3f21dc2.tar.gz bcm5719-llvm-724e62bb4a23bbc81589580f99e46d00e3f21dc2.zip |
Prepend '~' to the sys.path so that ~/utils.py takes precedence.
llvm-svn: 141817
-rw-r--r-- | lldb/examples/customization/pwd-cd-and-system/.lldbinit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/customization/pwd-cd-and-system/.lldbinit b/lldb/examples/customization/pwd-cd-and-system/.lldbinit index d46105ea1b2..f477b5797be 100644 --- a/lldb/examples/customization/pwd-cd-and-system/.lldbinit +++ b/lldb/examples/customization/pwd-cd-and-system/.lldbinit @@ -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 |